FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
SET_PLAYER_MAX_STAMINA
(Player playerId, float maxStamina)
SET_PLAYER_MODEL
(Player player, Hash model)
SET_PLAYER_ROUTING_BUCKET
(char* playerSrc, int bucket)
SET_PLAYER_STAMINA
(Player playerId, float stamina)
SET_PLAYER_TALKING_OVERRIDE
(Player player, BOOL state)
SET_PLAYER_WANTED_LEVEL
(Player player, int wantedLevel, BOOL delayedResponse)
SET_RESOURCE_KVP
(char* key, char* value)
SET_RESOURCE_KVP_FLOAT
(char* key, float value)
SET_RESOURCE_KVP_FLOAT_NO_SYNC
(char* key, float value)
SET_RESOURCE_KVP_INT
(char* key, int value)
SET_RESOURCE_KVP_INT_NO_SYNC
(char* key, int value)
SET_RESOURCE_KVP_NO_SYNC
(char* key, char* value)
SET_RICH_PRESENCE
(char* presenceState)
SET_ROPE_LENGTH_CHANGE_RATE
(int rope, float lengthChangeRate)
SET_ROPES_CREATE_NETWORK_WORLD_STATE
(BOOL shouldCreate)
SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE
(int bucketId, char* mode)
SET_ROUTING_BUCKET_POPULATION_ENABLED
(int bucketId, BOOL mode)
SET_RUNTIME_TEXTURE_ARGB_DATA
(long tex, char* buffer, int length)
SET_RUNTIME_TEXTURE_IMAGE
(long tex, char* fileName)
SET_RUNTIME_TEXTURE_PIXEL
(long tex, int x, int y, int r, int g, int b, int a)
SET_SNAKEOIL_FOR_ENTRY
(char* name, char* path, char* data)
SET_STATE_BAG_VALUE
(char* bagName, char* keyName, char* valueData, int valueLength, BOOL replicated)
SET_TEXT_CHAT_ENABLED
(BOOL enabled)
SET_TIMECYCLE_MODIFIER_VAR
(char* modifierName, char* varName, float value1, float value2)
SET_TRAIN_DOOR_OPEN_RATIO
(Vehicle train, int doorIndex, float ratio)
SET_TRAINS_FORCE_DOORS_OPEN
(bool forceOpen)
SET_VEHICLE_ALARM
(Vehicle vehicle, BOOL state)
SET_VEHICLE_ALARM_TIME_LEFT
(Vehicle vehicle, int time)
SET_VEHICLE_AUTO_REPAIR_DISABLED
(Vehicle vehicle, BOOL value)
SET_VEHICLE_BODY_HEALTH
(Vehicle vehicle, float value)
SET_VEHICLE_CLUTCH
(Vehicle vehicle, float clutch)
SET_VEHICLE_COLOUR_COMBINATION
(Vehicle vehicle, int colorCombination)
SET_VEHICLE_COLOURS
(Vehicle vehicle, int colorPrimary, int colorSecondary)
SET_VEHICLE_CURRENT_RPM
(Vehicle vehicle, float rpm)
SET_VEHICLE_CUSTOM_PRIMARY_COLOUR
(Vehicle vehicle, int r, int g, int b)