FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
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)
SET_VEHICLE_CUSTOM_SECONDARY_COLOUR
(Vehicle vehicle, int r, int g, int b)
SET_VEHICLE_DIRT_LEVEL
(Vehicle vehicle, float dirtLevel)
SET_VEHICLE_DOOR_BROKEN
(Vehicle vehicle, int doorIndex, BOOL deleteDoor)
SET_VEHICLE_DOORS_LOCKED
(Vehicle vehicle, int doorLockStatus)
SET_VEHICLE_ENGINE_TEMPERATURE
(Vehicle vehicle, float temperature)
SET_VEHICLE_FUEL_LEVEL
(Vehicle vehicle, float level)
SET_VEHICLE_GEAR_RATIO
(Vehicle vehicle, int gear, float ratio)
SET_VEHICLE_GRAVITY_AMOUNT
(Vehicle vehicle, float gravity)
SET_VEHICLE_HANDLING_FIELD
(Vehicle vehicle, char* class_, char* fieldName, Any value)