FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
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)
DELETE_TRAIN
(Entity entity)
DESTROY_DUI
(long duiObject)
DISABLE_EDITOR_RUNTIME
()
DISABLE_IDLE_CAMERA
(BOOL state)
DISABLE_VEHICLE_PASSENGER_IDLE_CAMERA
(BOOL state)
DISABLE_WORLDHORIZON_RENDERING
(BOOL state)
DOES_BOAT_SINK_WHEN_WRECKED
(Vehicle vehicle)
DOES_ENTITY_EXIST
(Object entity)
DOES_PLAYER_EXIST
(char* playerSrc)
DOES_PLAYER_OWN_SKU
(char* playerSrc, int skuId)
DOES_PLAYER_OWN_SKU_EXT
(char* playerSrc, int skuId)
DOES_TIMECYCLE_MODIFIER_HAS_VAR
(char* modifierName, char* varName)
DOES_TRAIN_STOP_AT_STATIONS
(Vehicle train)
DOES_VEHICLE_USE_FUEL
(Vehicle vehicle)
DOOR_SYSTEM_GET_ACTIVE
()
DOOR_SYSTEM_GET_SIZE
()
DRAW_CORONA
(float posX, float posY, float posZ, float size, int red, int green, int blue, int alpha, float intensity, float zBias, float dirX, float dirY, float dirZ, float viewThreshold, float innerAngle, float outerAngle, int flags)
DRAW_GIZMO
(long matrixPtr, char* id)