Utils
Index
Classes
Functions
- drawText2d
- drawText2dThisFrame
- drawText3d
- drawText3dThisFrame
- getClosestObject
- getClosestPlayer
- getClosestVehicle
- getClosestVirtualEntity
- getClosestWorldObject
- loadMapArea
- registerPedheadshot3Base64
- registerPedheadshotBase64
- registerPedheadshotTransparentBase64
- requestAnimDict
- requestAnimSet
- requestClipSet
- requestCutscene
- requestModel
Classes
Keybind
constructor
publicdestroy
Marker
A marker class whose instances do not need to be created in every tick.
constructor
publicbobUpAndDown
publiccolor
publicdir
publicdrawOnEnts
publicfaceCamera
publicp19
publicpos
publicrot
publicrotate
publicscale
publictextureDict
publictextureName
publictype
publicdestroy
Functions
drawText2d
drawText2dThisFrame
drawText3d
drawText3dThisFrame
getClosestObject
Finds the closest object (if any) from alt.Object.all.
pos
- From which position to look for the nearest object. Defaults to local player position.range
- In which range to search for the nearest object. Defaults toInfinity
.
getClosestPlayer
Finds the closest player (if any) from alt.Player.streamedIn.
pos
- From which position to look for the nearest player. Defaults to local player position.range
- In which range to search for the nearest player. Defaults toInfinity
.
getClosestVehicle
Finds the closest vehicle (if any) from alt.Vehicle.streamedIn.
pos
- From which position to look for the nearest vehicle. Defaults to local player position.range
- In which range to search for the nearest vehicle. Defaults toInfinity
.
getClosestVirtualEntity
Finds the closest virtualEntity (if any) from alt.VirtualEntity.streamedIn.
pos
- From which position to look for the nearest virtualEntity. Defaults to local player position.range
- In which range to search for the nearest virtualEntity. Defaults toInfinity
.
getClosestWorldObject
Finds the closest world object (if any) from alt.Object.allWorld.
pos
- From which position to look for the nearest world object. Defaults to local player position.range
- In which range to search for the nearest world object. Defaults toInfinity
.
loadMapArea
Loads the map area at a certain position and waits asynchronously until all parts in view area have been loaded.
registerPedheadshot3Base64
Combination of
native.registerPedheadshot3
and alt.getHeadshotBase64
registerPedheadshotBase64
Combination of
native.registerPedheadshot
and alt.getHeadshotBase64
registerPedheadshotTransparentBase64
Combination of
native.registerPedheadshotTransparentBase64
and alt.getHeadshotBase64
requestAnimDict
requestAnimSet
requestClipSet
requestCutscene
requestModel
Loads a model into memory asynchronously, like loadModelAsync but more safely.
Binds a callback to a specific key or multiple keys.
Example