FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
ADD_STATE_BAG_CHANGE_HANDLER
(char* keyFilter, char* bagFilter, func handler)
ADD_TEXT_ENTRY
(char* entryKey, char* entryText)
ADD_TEXT_ENTRY_BY_HASH
(Hash entryKey, char* entryText)
APPLY_FORCE_TO_ENTITY
(Entity entity, int forceType, float x, float y, float z, float offX, float offY, float offZ, int boneIndex, BOOL isDirectionRel, BOOL ignoreUpVec, BOOL isForceRel, BOOL p12, BOOL p13)
BREAK_OFF_VEHICLE_WHEEL
(Vehicle vehicle, int wheelIndex, BOOL leaveDebrisTrail, BOOL deleteWheel, BOOL unknownFlag, BOOL putOnFire)
CALL_MINIMAP_SCALEFORM_FUNCTION
(int miniMap, char* fnName)
CAN_PLAYER_START_COMMERCE_SESSION
(char* playerSrc)
CANCEL_EVENT
()
CLEAR_PED_PROP
(Ped ped, int propId)
CLEAR_PED_SECONDARY_TASK
(Ped ped)
CLEAR_PED_TASKS
(Ped ped)
CLEAR_PED_TASKS_IMMEDIATELY
(Ped ped)
CLEAR_PLAYER_WANTED_LEVEL
(Player player)
CLEAR_VEHICLE_XENON_LIGHTS_CUSTOM_COLOR
(Vehicle vehicle)
CLONE_TIMECYCLE_MODIFIER
(char* sourceModifierName, char* clonedModifierName)
COMMIT_RUNTIME_TEXTURE
(long tex)
CREATE_AUDIO_SUBMIX
(char* name)
CREATE_DRY_VOLUME
(float xMin, float yMin, float zMin, float xMax, float yMax, float zMax)
CREATE_DUI
(char* url, int width, int height)
CREATE_OBJECT
(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL netMissionEntity, BOOL doorFlag)
CREATE_OBJECT_NO_OFFSET
(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL netMissionEntity, BOOL doorFlag)
CREATE_PED
(int pedType, Hash modelHash, float x, float y, float z, float heading, BOOL isNetwork, BOOL bScriptHostPed)
CREATE_PED_INSIDE_VEHICLE
(Vehicle vehicle, int pedType, Hash modelHash, int seat, BOOL isNetwork, BOOL bScriptHostPed)
CREATE_RUNTIME_TEXTURE
(long txd, char* txn, int width, int height)
CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE
(long txd, char* txn, char* duiHandle)
CREATE_RUNTIME_TEXTURE_FROM_IMAGE
(long txd, char* txn, char* fileName)
CREATE_RUNTIME_TXD
(char* name)
CREATE_TIMECYCLE_MODIFIER
(char* modifierName)
CREATE_VEHICLE
(Hash modelHash, float x, float y, float z, float heading, BOOL isNetwork, BOOL netMissionEntity)
CREATE_VEHICLE_SERVER_SETTER
(Hash modelHash, char* type, float x, float y, float z, float heading)
DELETE_ENTITY
(Entity entity)
DELETE_FUNCTION_REFERENCE
(char* referenceIdentity)
DELETE_RESOURCE_KVP
(char* key)
DELETE_RESOURCE_KVP_NO_SYNC
(char* key)
DESTROY_DUI
(long duiObject)