FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
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)
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_VEHICLE_USE_FUEL
(Vehicle vehicle)
DOOR_SYSTEM_GET_ACTIVE
()
DOOR_SYSTEM_GET_SIZE
()
DRAW_GIZMO
(long matrixPtr, char* id)
DRAW_GLOW_SPHERE
(float posX, float posY, float posZ, float radius, int colorR, int colorG, int colorB, float intensity, BOOL invert, BOOL marker)
DRAW_LINE_2D
(float x1, float y1, float x2, float y2, float width, int r, int g, int b, int a)
DRAW_RECT_ROTATED
(float x, float y, float width, float height, float rotation, int r, int g, int b, int a)
DROP_PLAYER
(char* playerSrc, char* reason)
DUPLICATE_FUNCTION_REFERENCE
(char* referenceIdentity)
ENABLE_EDITOR_RUNTIME
()
ENABLE_ENHANCED_HOST_SUPPORT
(BOOL enabled)
END_FIND_KVP
(int handle)
END_FIND_OBJECT
(int findHandle)