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
- PLAYERHash
_GET_PLAYER_RESERVE_PARACHUTE_MODEL_OVERRIDE
``` NativeDB Introduced: v2372 ```
0x37FAAA68DCA9D08D - PLAYERvoid
GET_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, ```
0xD5A016BC3C09CF40 - PLAYERvoid
GET_PLAYER_RGB_COLOUR
Description not yet documented
0xE902EF951DCE178F - PLAYERVehicle
GET_PLAYERS_LAST_VEHICLE
### Warning This native will return `0` if the last vehicle the player was in was destroyed. ### Alternative You can use [GET_VEHICLE_PED_IS_IN](#\_0x9A9112A0FE9A4713), which will actually get the last vehicle, even if it was destroyed.
0xB6997A7EB3F5C8C0 - PLAYERfloat
GET_PLAYER_SPRINT_STAMINA_REMAINING
Description not yet documented
0x3F9F16F8E65A7ED7 - PLAYERfloat
GET_PLAYER_SPRINT_TIME_REMAINING
Description not yet documented
0x1885BC9B108B4C99 - PLAYERBOOL
GET_PLAYER_TARGET_ENTITY
``` Assigns the handle of locked-on melee target to *entity that you pass it. Returns false if no entity found. ```
0x13EDE1A5DBF797C9 - PLAYERint
GET_PLAYER_TEAM
``` Gets the player's team. Does nothing in singleplayer. ```
0x37039302F4E0A008 - PLAYERfloat
GET_PLAYER_UNDERWATER_TIME_REMAINING
Description not yet documented
0xA1FCF8E6AF40B731 - PLAYERVector3
GET_PLAYER_WANTED_CENTRE_POSITION
Description not yet documented
0x0C92BA89F1AF26F8 - PLAYERint
GET_PLAYER_WANTED_LEVEL
Description not yet documented
0xE28E54788CE8F12D - PLAYERint
GET_TIME_SINCE_LAST_ARREST
``` Returns the time since the character was arrested in (ms) milliseconds. example var time = Function.call<int>(Hash.GET_TIME_SINCE_LAST_ARREST(); UI.DrawSubtitle(time.ToString()); if player has not been arrested, the int returned will be -1. ```
0x5063F92F07C2A316 - PLAYERint
GET_TIME_SINCE_LAST_DEATH
``` Returns the time since the character died in (ms) milliseconds. example var time = Function.call<int>(Hash.GET_TIME_SINCE_LAST_DEATH(); UI.DrawSubtitle(time.ToString()); if player has not died, the int returned will be -1. ```
0xC7034807558DDFCA - PLAYERint
GET_TIME_SINCE_PLAYER_DROVE_AGAINST_TRAFFIC
Description not yet documented
0xDB89591E290D9182 - PLAYERint
GET_TIME_SINCE_PLAYER_DROVE_ON_PAVEMENT
Description not yet documented
0xD559D2BE9E37853B - PLAYERint
GET_TIME_SINCE_PLAYER_HIT_PED
Description not yet documented
0xE36A25322DC35F42 - PLAYERint
GET_TIME_SINCE_PLAYER_HIT_VEHICLE
Description not yet documented
0x5D35ECF3A81A0EE0 - PLAYERint
_GET_WANTED_LEVEL_PAROLE_DURATION
``` NativeDB Introduced: v2372 ```
0xA72200F51875FEA4 - PLAYERfloat
GET_WANTED_LEVEL_RADIUS
``` Remnant from GTA IV. Does nothing in GTA V. ```
0x085DEB493BE80812 - PLAYERint
GET_WANTED_LEVEL_THRESHOLD
``` Drft ```
0xFDD179EAF45B556C - PLAYERBOOL
GIVE_ACHIEVEMENT_TO_PLAYER
``` Achievements from 0-57 more achievements came with update 1.29 (freemode events update), I'd say that they now go to 60, but I'll need to check. ```
0xBEC7076D64130195 - PLAYERvoid
GIVE_PLAYER_RAGDOLL_CONTROL
Description not yet documented
0x3C49C870E66F0A28 - PLAYERBOOL
HAS_ACHIEVEMENT_BEEN_PASSED
Description not yet documented
0x867365E111A3B6EB - PLAYERBOOL
HAS_FORCE_CLEANUP_OCCURRED
Description not yet documented
0xC968670BFACE42D9 - PLAYERBOOL
_HAS_PLAYER_BEEN_SHOT_BY_COP
Description not yet documented
0xBC0753C9CA14B506 - PLAYERBOOL
HAS_PLAYER_BEEN_SPOTTED_IN_STOLEN_VEHICLE
Description not yet documented
0xD705740BB0A1CF4C - PLAYERBOOL
HAS_PLAYER_DAMAGED_AT_LEAST_ONE_NON_ANIMAL_PED
Description not yet documented
0xE4B90F367BD81752 - PLAYERBOOL
HAS_PLAYER_DAMAGED_AT_LEAST_ONE_PED
Description not yet documented
0x20CE80B0C2BF4ACC - PLAYERBOOL
HAS_PLAYER_LEFT_THE_WORLD
Description not yet documented
0xD55DDFB47991A294 - PLAYERint
INT_TO_PARTICIPANTINDEX
``` Simply returns whatever is passed to it (Regardless of whether the handle is valid or not). -------------------------------------------------------- if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::INT_TO_PARTICIPANTINDEX(i))) ```
0x9EC6603812C24710 - PLAYERPlayer
INT_TO_PLAYERINDEX
``` Simply returns whatever is passed to it (Regardless of whether the handle is valid or not). ```
0x41BD2A6B006AF756 - PLAYERBOOL
IS_PLAYER_BATTLE_AWARE
``` Returns true if an unk value is greater than 0.0f ```
0x38D28DA81E4E9BF9 - PLAYERBOOL
IS_PLAYER_BEING_ARRESTED
``` Return true while player is being arrested / busted. If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control) If atArresting is set to 0, this function will return 1 only when the busted screen is shown. ```
0x388A47C51ABDAC8E - PLAYERBOOL
IS_PLAYER_BLUETOOTH_ENABLE
Description not yet documented
0x65FAEE425DE637B0 - PLAYERBOOL
IS_PLAYER_CLIMBING
``` Returns TRUE if the player ('s ped) is climbing at the moment. ```
0x95E8F73DC65EFB9C - PLAYERBOOL
IS_PLAYER_CONTROL_ON
``` Can the player control himself, used to disable controls for player for things like a cutscene. --- You can't disable controls with this, use SET_PLAYER_CONTROL(...) for this. ```
0x49C32D60007AFA47 - PLAYERBOOL
IS_PLAYER_DEAD
Description not yet documented
0x424D4687FA1E5652 - PLAYERBOOL
_IS_PLAYER_DRIVING_DANGEROUSLY
```cpp enum eViolationType { // Checks if the player is driving on pedestrians walk ways VT_PAVED_PEDESTRIAN_AREAS = 0, // Checks if the player is running through red lights // This takes some time to return true. VT_RUNNING_REDS = 1, // checks if the player is driving on the wrong side of the road VT_AGAINST_TRAFFIC = 2 }; ``` Used solely in "Al Di Napoli" with type 2 for a voiceline.
0xF10B44FD479D69F3 - PLAYERBOOL
IS_PLAYER_FREE_AIMING
``` Gets a value indicating whether the specified player is currently aiming freely. ```
0x2E397FD2ECD37C87 - PLAYERBOOL
IS_PLAYER_FREE_AIMING_AT_ENTITY
``` Gets a value indicating whether the specified player is currently aiming freely at the specified entity. ```
0x3C06B5C839B38F7B
A living reference. Documentation coverage varies by native and source.