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
- PLAYERBOOL
IS_PLAYER_FREE_FOR_AMBIENT_TASK
Description not yet documented
0xDCCFD3F106C36AB4 - PLAYERBOOL
IS_PLAYER_LOGGING_IN_NP
``` this function is hard-coded to always return 0. ```
0x74556E1420867ECA - PLAYERBOOL
IS_PLAYER_ONLINE
It returns true if the player is online, suggesting they are also logged in locally. Note that this is an alias for `NETWORK_IS_SIGNED_ONLINE`.
0xF25D331DC2627BBC - PLAYERBOOL
IS_PLAYER_PLAYING
``` Checks whether the specified player has a Ped, the Ped is not dead, is not injured and is not arrested. ```
0x5E9564D8246B909A - PLAYERBOOL
IS_PLAYER_PRESSING_HORN
Description not yet documented
0xFA1E2BF8B10598F9 - PLAYERBOOL
IS_PLAYER_READY_FOR_CUTSCENE
Description not yet documented
0x908CBECC2CAA3690 - PLAYERBOOL
IS_PLAYER_RIDING_TRAIN
``` Returns true if the player is riding a train. ```
0x4EC12697209F2196 - PLAYERBOOL
IS_PLAYER_SCRIPT_CONTROL_ON
Description not yet documented
0x8A876A65283DD7D7 - PLAYERBOOL
IS_PLAYER_TARGETTING_ANYTHING
Description not yet documented
0x78CFE51896B6B8A4 - PLAYERBOOL
IS_PLAYER_TARGETTING_ENTITY
Description not yet documented
0x7912F7FC4F6264B6 - PLAYERBOOL
IS_PLAYER_TELEPORT_ACTIVE
Description not yet documented
0x02B15662D7F8886F - PLAYERBOOL
IS_PLAYER_WANTED_LEVEL_GREATER
Description not yet documented
0x238DB2A2C23EE9EF - PLAYERBOOL
IS_SPECIAL_ABILITY_ACTIVE
``` NativeDB Added Parameter 2: Any p1 ```
0x3E5F7FC85D854E15 - PLAYERBOOL
IS_SPECIAL_ABILITY_ENABLED
``` NativeDB Added Parameter 2: Any p1 ```
0xB1D200FE26AEF3CB - PLAYERBOOL
IS_SPECIAL_ABILITY_METER_FULL
``` NativeDB Added Parameter 2: Any p1 ```
0x05A1FE504B7F2587 - PLAYERBOOL
IS_SPECIAL_ABILITY_UNLOCKED
Description not yet documented
0xC6017F6A6CDFA694 - PLAYERBOOL
IS_SYSTEM_UI_BEING_DISPLAYED
Description not yet documented
0x5D511E3867C87139 - PLAYERint
NETWORK_PLAYER_ID_TO_INT
``` Does exactly the same thing as PLAYER_ID() ```
0xEE68096F9F37341E - PLAYERvoid
PLAYER_ATTACH_VIRTUAL_BOUND
``` Only 1 match. ob_sofa_michael. PLAYER::PLAYER_ATTACH_VIRTUAL_BOUND(-804.5928f, 173.1801f, 71.68436f, 0f, 0f, 0.590625f, 1f, 0.7f);1.0.335.2, 1.0.350.1/2, 1.0.372.2, 1.0.393.2, 1.0.393.4, 1.0.463.1; ```
0xED51733DC73AED51 - PLAYERvoid
PLAYER_DETACH_VIRTUAL_BOUND
``` 1.0.335.2, 1.0.350.1/2, 1.0.372.2, 1.0.393.2, 1.0.393.4, 1.0.463.1; ```
0x1DD5897E2FA6E7C9 - PLAYERPlayer
PLAYER_ID
Returns the player index for the local player.
0x4F8644AF03D0E0D6 - PLAYERPed
PLAYER_PED_ID
Returns the entity handle for the local player ped. Note that this entity handle will change after using commands such as SET_PLAYER_MODEL.
0xD80958FC74E988A6 - PLAYERvoid
REMOVE_PLAYER_HELMET
Description not yet documented
0xF3AC26D3CC576528 - PLAYERvoid
REPORT_CRIME
``` PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 37, PLAYER::GET_WANTED_LEVEL_THRESHOLD(1)); From am_armybase.ysc.c4: PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(4), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4)); ----- This was taken from the GTAV.exe v1.334. The function is called sub_140592CE8. For a full decompilation of the function, see here: pastebin.com/09qSMsN7 ----- crimeType: 1: Firearms possession 2: Person running a red light ("5-0-5") 3: Reckless driver 4: Speeding vehicle (a "5-10") 5: Traffic violation (a "5-0-5") 6: Motorcycle rider without a helmet 7: Vehicle theft (a "5-0-3") 8: Grand Theft Auto 9: ??? 10: ??? 11: Assault on a civilian (a "2-40") 12: Assault on an officer 13: Assault with a deadly weapon (a "2-45") 14: Officer shot (a "2-45") 15: Pedestrian struck by a vehicle 16: Officer struck by a vehicle 17: Helicopter down (an "AC"?) 18: Civilian on fire (a "2-40") 19: Officer set on fire (a "10-99") 20: Car on fire 21: Air unit down (an "AC"?) 22: An explosion (a "9-96") 23: A stabbing (a "2-45") (also something else I couldn't understand) 24: Officer stabbed (also something else I couldn't understand) 25: Attack on a vehicle ("MDV"?) 26: Damage to property 27: Suspect threatening officer with a firearm 28: Shots fired 29: ??? 30: ??? 31: ??? 32: ??? 33: ??? 34: A "2-45" 35: ??? 36: A "9-25" 37: ??? 38: ??? 39: ??? 40: ??? 41: ??? 42: ??? 43: Possible disturbance 44: Civilian in need of assistance 45: ??? 46: ??? ```
0xE9B09589827545E7 - PLAYERvoid
REPORT_POLICE_SPOTTED_PLAYER
Description not yet documented
0xDC64D2C53493ED12 - PLAYERvoid
RESET_PLAYER_ARREST_STATE
Description not yet documented
0x2D03E13C460760D6 - PLAYERvoid
RESET_PLAYER_INPUT_GAIT
Description not yet documented
0x19531C47A2ABD691 - PLAYERvoid
RESET_PLAYER_STAMINA
Description not yet documented
0xA6F312FCCE9C1DFE - PLAYERvoid
RESET_WANTED_LEVEL_DIFFICULTY
Description not yet documented
0xB9D0DD990DC141DD - PLAYERvoid
RESET_WORLD_BOUNDARY_FOR_PLAYER
``` NativeDB Introduced: v323 ```
0xDA1DF03D5A315F4E - PLAYERvoid
RESTORE_PLAYER_STAMINA
Adds a percentage to a players stamina
0xA352C1B864CAFD33 - PLAYERBOOL
_SET_ACHIEVEMENT_PROGRESS
For Steam. Does nothing and always returns false in the retail version of the game.
0xC2AFFFDABBDC2C5C - PLAYERvoid
SET_AIR_DRAG_MULTIPLIER_FOR_PLAYERS_VEHICLE
``` This can be between 1.0f - 14.9f You can change the max in IDA from 15.0. I say 15.0 as the function blrs if what you input is greater than or equal to 15.0 hence why it's 14.9 max default. On PC the multiplier can be between 0.0f and 50.0f (inclusive). ```
0xCA7DC8329F0A1E9E - PLAYERvoid
SET_ALL_RANDOM_PEDS_FLEE
Sets whether all random peds will run away from the player if they are agitated (threatened) (bool=true), or if they will stand their ground (bool=false).
0x056E0FE8534C2949 - PLAYERvoid
SET_ALL_RANDOM_PEDS_FLEE_THIS_FRAME
Description not yet documented
0x471D2FF42A94B4F2 - PLAYERvoid
SET_AUTO_GIVE_PARACHUTE_WHEN_ENTER_PLANE
Description not yet documented
0x9F343285A00B4BB6 - PLAYERvoid
SET_AUTO_GIVE_SCUBA_GEAR_WHEN_EXIT_VEHICLE
Description not yet documented
0xD2B315B6689D537D - PLAYERvoid
SET_DISABLE_AMBIENT_MELEE_MOVE
Description not yet documented
0x2E8AABFA40A84F8C - PLAYERvoid
SET_DISPATCH_COPS_FOR_PLAYER
Description not yet documented
0xDB172424876553F4 - PLAYERvoid
SET_EVERYONE_IGNORE_PLAYER
Description not yet documented
0x8EEDA153AD141BA4
A living reference. Documentation coverage varies by native and source.