FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
REGISTER_NUI_CALLBACK
(char* callbackType, func callback)
REGISTER_NUI_CALLBACK_TYPE
(char* callbackType)
REGISTER_RAW_NUI_CALLBACK
(char* callbackType, func callback)
REGISTER_RESOURCE_AS_EVENT_HANDLER
(char* eventName)
REGISTER_RESOURCE_ASSET
(char* resourceName, char* fileName)
REGISTER_RESOURCE_BUILD_TASK_FACTORY
(char* factoryId, func factoryFn)
REGISTER_STREAMING_FILE_FROM_CACHE
(char* resourceName, char* fileName, char* cacheString)
REGISTER_STREAMING_FILE_FROM_KVS
(char* kvsKey)
REGISTER_STREAMING_FILE_FROM_URL
(char* registerAs, char* url)
REMOVE_ALL_PED_WEAPONS
(Ped ped, BOOL p1)
REMOVE_BLIP
(Blip* blip)
REMOVE_DRY_VOLUME
(int handle)
REMOVE_REPLACE_TEXTURE
(char* origTxd, char* origTxn)
REMOVE_STATE_BAG_CHANGE_HANDLER
(int cookie)
REMOVE_TIMECYCLE_MODIFIER
(char* modifierName)
REMOVE_TIMECYCLE_MODIFIER_VAR
(char* modifierName, char* varName)
REMOVE_WEAPON_COMPONENT_FROM_PED
(Ped ped, Hash weaponHash, Hash componentHash)
REMOVE_WEAPON_FROM_PED
(Ped ped, Hash weaponHash)
REQUEST_PLAYER_COMMERCE_SESSION
(char* playerSrc, int skuId)
REQUEST_RESOURCE_FILE_SET
(char* setName)
RESET_FLY_THROUGH_WINDSCREEN_PARAMS
()
RESET_MAP_ZOOM_DATA_LEVEL
(int index)
RESET_MAPDATA_ENTITY_MATRIX
(int mapDataHash, int entityInternalIdx)
RESET_PED_MODEL_PERSONALITY
(Hash modelHash)
RESET_VEHICLE_PEDS_CAN_STAND_ON_TOP_FLAG
(Vehicle vehicle)
RESET_WATER
()
SAVE_RESOURCE_FILE
(char* resourceName, char* fileName, char* data, int dataLength)
SCAN_RESOURCE_ROOT
(char* rootPath, func callback)
SCHEDULE_RESOURCE_TICK
(char* resourceName)
SELECT_ENTITY_AT_CURSOR
(int hitFlags, BOOL precise)
SELECT_ENTITY_AT_POS
(float fracX, float fracY, int hitFlags, BOOL precise)
SEND_DUI_MESSAGE
(long duiObject, char* jsonString)
SEND_DUI_MOUSE_DOWN
(long duiObject, char* button)
SEND_DUI_MOUSE_MOVE
(long duiObject, int x, int y)
SEND_DUI_MOUSE_UP
(long duiObject, char* button)