The FiveM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / FiveM
Native reference
- PLAYERvoid
SET_IGNORE_LOW_PRIORITY_SHOCKING_EVENTS
Description not yet documented
0x596976B02B6B5700 - PLAYERvoid
SET_MAX_WANTED_LEVEL
Description not yet documented
0xAA5F02DB48D704B9 - PLAYERvoid
SET_PLAYER_BLUETOOTH_STATE
Description not yet documented
0x5DC40A8869C22141 - PLAYERvoid
SET_PLAYER_CAN_BE_HASSLED_BY_GANGS
``` Sets whether this player can be hassled by gangs. ```
0xD5E460AD7020A246 - PLAYERvoid
SET_PLAYER_CAN_DO_DRIVE_BY
Sets whether the player is able to do drive-bys in vehicle (shooting & aiming in vehicles), this also includes middle finger taunts. This is a toggle, it does not have to be ran every frame.
0x6E8834B52EC20C77 - PLAYERvoid
SET_PLAYER_CAN_LEAVE_PARACHUTE_SMOKE_TRAIL
Description not yet documented
0xF401B182DBA8AF53 - PLAYERvoid
SET_PLAYER_CAN_USE_COVER
``` Sets whether this player can take cover. ```
0xD465A8599DFF6814 - PLAYERvoid
SET_PLAYER_CLOTH_LOCK_COUNTER
``` 6 matches across 4 scripts. 5 occurrences were 240. The other was 255. ```
0x14D913B777DFF5DA - PLAYERvoid
SET_PLAYER_CLOTH_PACKAGE_INDEX
``` Every occurrence was either 0 or 2. ```
0x9F7BBA2EA6372500 - PLAYERvoid
SET_PLAYER_CLOTH_PIN_FRAMES
Description not yet documented
0x749FADDF97DFE930 - PLAYERvoid
SET_PLAYER_CONTROL
``` Flags: SPC_AMBIENT_SCRIPT = (1 << 1), SPC_CLEAR_TASKS = (1 << 2), SPC_REMOVE_FIRES = (1 << 3), SPC_REMOVE_EXPLOSIONS = (1 << 4), SPC_REMOVE_PROJECTILES = (1 << 5), SPC_DEACTIVATE_GADGETS = (1 << 6), SPC_REENABLE_CONTROL_ON_DEATH = (1 << 7), SPC_LEAVE_CAMERA_CONTROL_ON = (1 << 8), SPC_ALLOW_PLAYER_DAMAGE = (1 << 9), SPC_DONT_STOP_OTHER_CARS_AROUND_PLAYER = (1 << 10), SPC_PREVENT_EVERYBODY_BACKOFF = (1 << 11), SPC_ALLOW_PAD_SHAKE = (1 << 12) See: https://alloc8or.re/gta5/doc/enums/eSetPlayerControlFlag.txt ```
0x8D32347D6D4C40A2 - PLAYERvoid
_SET_PLAYER_FALL_DISTANCE
Description not yet documented
0xEFD79FA81DFBA9CB - PLAYERvoid
SET_PLAYER_FORCED_AIM
Description not yet documented
0x0FEE4F80AC44A726 - PLAYERvoid
SET_PLAYER_FORCED_ZOOM
Description not yet documented
0x75E7D505F2B15902 - PLAYERvoid
SET_PLAYER_FORCE_SKIP_AIM_INTRO
Description not yet documented
0x7651BC64AE59E128 - PLAYERvoid
SET_PLAYER_HAS_RESERVE_PARACHUTE
Description not yet documented
0x7DDAB28D31FAC363 - PLAYERvoid
_SET_PLAYER_HEALTH_RECHARGE_LIMIT
Description not yet documented
0xC388A0F065F5BC34 - PLAYERvoid
SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
This multiplier is reset to `1.0` every time the player ped is changed, often times via [`SET_PLAYER_MODEL`](#\_0x00A1CADD00108836) or [`CHANGE_PLAYER_PED`](#\_0x048189FAC643DEEE).
0x5DB660B38DD98A31 - PLAYERvoid
_SET_PLAYER_HOMING_ROCKET_DISABLED
``` NativeDB Introduced: v1180 ```
0xEE4EBDD2593BA844 - PLAYERvoid
SET_PLAYER_INVINCIBLE
Make the player impervious to all forms of damage.
0x239528EACDC3E7DE - PLAYERvoid
_SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED
Description not yet documented
0x6BC97F4F4BB3C04B - PLAYERvoid
SET_PLAYER_LEAVE_PED_BEHIND
Description not yet documented
0xFF300C7649724A0B - PLAYERvoid
SET_PLAYER_LOCKON
``` Used to toggle the square up aim. ```
0x5C8B2F450EE4328E - PLAYERvoid
SET_PLAYER_LOCKON_RANGE_OVERRIDE
``` Affects the range of auto aim target. ```
0x29961D490E5814FD - PLAYERvoid
SET_PLAYER_MAX_ARMOUR
``` Default is 100. Use player id and not ped id. For instance: PLAYER::SET_PLAYER_MAX_ARMOUR(PLAYER::PLAYER_ID(), 100); // main_persistent.ct4 ```
0x77DFCCF5948B8C71 - PLAYERvoid
SET_PLAYER_MAY_NOT_ENTER_ANY_VEHICLE
Establishes a reset flag to prevent the player from entering any vehicle. Not that this native must be called every frame.
0x1DE37BBF9E9CC14A - PLAYERvoid
SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
Limit the player to only enter this vehicle. Note set vehicle to false if you want them to access any vehicle.
0x8026FF78F208978A - PLAYERvoid
SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER
``` NativeDB Added Parameter 3: BOOL p2 ```
0x4A3DC7ECCC321032 - PLAYERvoid
SET_PLAYER_MELEE_WEAPON_DEFENSE_MODIFIER
``` modifier's min value is 0.1 ```
0xAE540335B4ABC4E2 - PLAYERvoid
SET_PLAYER_MODEL
Set the model for a specific Player. Note that this will destroy the current Ped for the Player and create a new one, any reference to the old ped will be invalid after calling this. As per usual, make sure to request the model first and wait until it has loaded.
0x00A1CADD00108836 - PLAYERvoid
SET_PLAYER_NOISE_MULTIPLIER
Description not yet documented
0xDB89EF50FF25FCE9 - PLAYERvoid
SET_PLAYER_PARACHUTE_MODEL_OVERRIDE
``` example: PLAYER::SET_PLAYER_PARACHUTE_MODEL_OVERRIDE(PLAYER::PLAYER_ID(), 0x73268708); ```
0x977DB4641F6FC3DB - PLAYERvoid
SET_PLAYER_PARACHUTE_PACK_MODEL_OVERRIDE
Description not yet documented
0xDC80A4C2F18A2B64 - PLAYERvoid
SET_PLAYER_PARACHUTE_PACK_TINT_INDEX
``` tints 0- 13 0 - unkown 1 - unkown 2 - unkown 3 - unkown 4 - unkown ```
0x93B0FB27C9A04060 - PLAYERvoid
SET_PLAYER_PARACHUTE_SMOKE_TRAIL_COLOR
Description not yet documented
0x8217FD371A4625CF - PLAYERvoid
SET_PLAYER_PARACHUTE_TINT_INDEX
``` Tints: None = -1, Rainbow = 0, Red = 1, SeasideStripes = 2, WidowMaker = 3, Patriot = 4, Blue = 5, Black = 6, Hornet = 7, AirFocce = 8, Desert = 9, Shadow = 10, HighAltitude = 11, Airbone = 12, Sunrise = 13, ```
0xA3D0E54541D9A5E5 - PLAYERvoid
SET_PLAYER_PARACHUTE_VARIATION_OVERRIDE
``` p1 was always 5. p4 was always false. ```
0xD9284A8C0D48352C - PLAYERvoid
_SET_PLAYER_RESERVE_PARACHUTE_MODEL_OVERRIDE
``` NativeDB Introduced: v2372 ```
0x0764486AEDE748DB - PLAYERvoid
SET_PLAYER_RESERVE_PARACHUTE_TINT_INDEX
``` Tints: None = -1, Rainbow = 0, Red = 1, SeasideStripes = 2, WidowMaker = 3, Patriot = 4, Blue = 5, Black = 6, Hornet = 7, AirFocce = 8, Desert = 9, Shadow = 10, HighAltitude = 11, Airbone = 12, Sunrise = 13, ```
0xAF04C87F5DC1DF38 - PLAYERvoid
SET_PLAYER_RESET_FLAG_PREFER_REAR_SEATS
``` example: flags: 0-6 PLAYER::SET_PLAYER_RESET_FLAG_PREFER_REAR_SEATS(PLAYER::PLAYER_ID(), 6); wouldnt the flag be the seatIndex? ```
0x11D5F725F0E780E0
A living reference. Documentation coverage varies by native and source.