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_PLAYER_SIMULATE_AIMING
Description not yet documented
0xC54C95DA968EC5B5 - PLAYERvoid
SET_PLAYER_SNEAKING_NOISE_MULTIPLIER
``` Values around 1.0f to 2.0f used in game scripts. ```
0xB2C1A29588A9F47C - PLAYERvoid
SET_PLAYER_SPRINT
Description not yet documented
0xA01B8075D8B92DF4 - PLAYERvoid
SET_PLAYER_STEALTH_PERCEPTION_MODIFIER
Description not yet documented
0x4E9021C1FCDD507A - PLAYERvoid
SET_PLAYER_TARGETING_MODE
``` Sets your targeting mode. 0 = Assisted Aim - Full 1 = Assisted Aim - Partial 2 = Free Aim - Assisted 3 = Free Aim ```
0xB1906895227793F3 - PLAYERvoid
SET_PLAYER_TARGET_LEVEL
Description not yet documented
0x5702B917B99DB1CD - PLAYERvoid
SET_PLAYER_TEAM
Set the player's current team.
0x0299FA38396A4940 - PLAYERAny
_SET_PLAYER_UNDERWATER_TIME_REMAINING
Seems to lock the underwater timer of the specified player. Set `percentage` to `50.0` will reduce the value of [GET_PLAYER_UNDERWATER_TIME_REMAINING](#\_0xA1FCF8E6AF40B731) to 5.0. If you want to increase the underwater time for ped, use [SET_PED_MAX_TIME_UNDERWATER](#\_0x6BA428C528D9E522) instead. Using this native after [SET_PED_MAX_TIME_UNDERWATER](#\_0x6BA428C528D9E522) **WILL NOT** get what you want. For example, if you set the max time underwater to `100.0` seconds using [SET_PED_MAX_TIME_UNDERWATER](#\_0x6BA428C528D9E522) and then call this native and set the `percentage` to 50.0, you will not get `50.0`, instead `2.0`.
0xA0D3E4F7AAFB7E78 - PLAYERvoid
SET_PLAYER_VEHICLE_DAMAGE_MODIFIER
``` modifier's min value is 0.1 ```
0xA50E117CDDF82F0C - PLAYERvoid
SET_PLAYER_VEHICLE_DEFENSE_MODIFIER
``` modifier's min value is 0.1 ```
0x4C60E6EFDAFF2462 - PLAYERvoid
SET_PLAYER_WANTED_CENTRE_POSITION
``` # Predominant call signatures PLAYER::SET_PLAYER_WANTED_CENTRE_POSITION(PLAYER::PLAYER_ID(), ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1)); # Parameter value ranges P0: PLAYER::PLAYER_ID() P1: ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1) P2: Not set by any call ```
0x520E541A97A13354 - PLAYERvoid
SET_PLAYER_WANTED_LEVEL
Description not yet documented
0x39FF19C64EF7DA5B - PLAYERvoid
SET_PLAYER_WANTED_LEVEL_NO_DROP
Description not yet documented
0x340E61DE7F471565 - PLAYERvoid
SET_PLAYER_WANTED_LEVEL_NOW
``` Forces any pending wanted level to be applied to the specified player immediately. Call SET_PLAYER_WANTED_LEVEL with the desired wanted level, followed by SET_PLAYER_WANTED_LEVEL_NOW. Second parameter is unknown (always false). ```
0xE0A7D1E497FFCD6F - PLAYERvoid
SET_PLAYER_WEAPON_DAMAGE_MODIFIER
The native ensures the 'modifier' parameter is 0.1 or greater.
0xCE07B9F7817AADA3 - PLAYERvoid
SET_PLAYER_WEAPON_DEFENSE_MODIFIER
Description not yet documented
0x2D83BC011CA14A3C - PLAYERvoid
_SET_PLAYER_WEAPON_DEFENSE_MODIFIER_2
Description not yet documented
0xBCFDE9EDE4CF27DC - PLAYERvoid
SET_POLICE_IGNORE_PLAYER
``` The player will be ignored by the police if toggle is set to true ```
0x32C62AA929C2DA6A - PLAYERvoid
SET_POLICE_RADAR_BLIPS
``` If toggle is set to false: The police won't be shown on the (mini)map If toggle is set to true: The police will be shown on the (mini)map ```
0x43286D561B72B8BF - PLAYERvoid
SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER
``` Multiplier goes up to 1.49 any value above will be completely overruled by the game and the multiplier will not take effect, this can be edited in memory however. Just call it one time, it is not required to be called once every tick. Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and SWIM above. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it's 1.49 max default. It is not possible to "decrease" speed. Anything below 1 will be ignored. ```
0x6DB47AA77FD94E09 - PLAYERvoid
_SET_SPECIAL_ABILITY
``` NativeDB Added Parameter 3: Any p2 ```
0xB214D570EAD7F81A - PLAYERvoid
SET_SPECIAL_ABILITY_MULTIPLIER
Description not yet documented
0xA49C426ED0CA4AB7 - PLAYERvoid
SET_SWIM_MULTIPLIER_FOR_PLAYER
``` Swim speed multiplier. Multiplier goes up to 1.49 Just call it one time, it is not required to be called once every tick. - Note copied from below native. Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and RUN_SPRINT below. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it's 1.49 max default. ```
0xA91C6F0FF7D16A13 - PLAYERvoid
SET_WANTED_LEVEL_DIFFICULTY
``` Max value is 1.0 ```
0x9B0BB33B04405E7A - PLAYERvoid
_SET_WANTED_LEVEL_HIDDEN_EVASION_TIME
``` NativeDB Introduced: v2060 ```
0x49B856B1360C47C7 - PLAYERvoid
SET_WANTED_LEVEL_MULTIPLIER
Description not yet documented
0x020E5F00CDA207BA - PLAYERvoid
SIMULATE_PLAYER_INPUT_GAIT
This is to make the player walk without accepting input. Call this native every frame so you can control the direction of your ped.
0x477D5D63E63ECA5D - PLAYERvoid
_SPECIAL_ABILITY_ACTIVATE
``` NativeDB Added Parameter 2: Any p1 ```
0x821FDC827D6F4090 - PLAYERvoid
SPECIAL_ABILITY_CHARGE_ABSOLUTE
``` p1 appears as 5, 10, 15, 25, or 30. p2 is always true. ``` ``` NativeDB Added Parameter 4: Any p3 ```
0xB7B0870EB531D08D - PLAYERvoid
SPECIAL_ABILITY_CHARGE_CONTINUOUS
``` p1 appears to always be 1 (only comes up twice) ``` ``` NativeDB Added Parameter 3: Any p2 ```
0xED481732DFF7E997 - PLAYERvoid
SPECIAL_ABILITY_CHARGE_LARGE
``` 2 matches. p1 was always true. ``` ``` NativeDB Added Parameter 4: Any p3 ```
0xF733F45FA4497D93 - PLAYERvoid
SPECIAL_ABILITY_CHARGE_MEDIUM
``` Only 1 match. Both p1 & p2 were true. ``` ``` NativeDB Added Parameter 4: Any p3 ```
0xF113E3AA9BC54613 - PLAYERvoid
SPECIAL_ABILITY_CHARGE_NORMALIZED
``` normalizedValue is from 0.0 - 1.0 p2 is always 1 ``` ``` NativeDB Added Parameter 4: Any p3 ```
0xA0696A65F009EE18 - PLAYERvoid
SPECIAL_ABILITY_CHARGE_ON_MISSION_FAILED
``` NativeDB Added Parameter 2: Any p1 ```
0xC9A763D8FE87436A - PLAYERvoid
SPECIAL_ABILITY_CHARGE_SMALL
``` Every occurrence of p1 & p2 were both true. ``` ``` NativeDB Added Parameter 4: Any p3 ```
0x2E7B9B683481687D - PLAYERvoid
SPECIAL_ABILITY_DEACTIVATE
``` NativeDB Added Parameter 2: Any p1 ```
0xD6A953C6D1492057 - PLAYERvoid
SPECIAL_ABILITY_DEACTIVATE_FAST
``` NativeDB Added Parameter 2: Any p1 ```
0x9CB5CE07A3968D5A - PLAYERvoid
_SPECIAL_ABILITY_DEPLETE
``` NativeDB Added Parameter 2: Any p1 ```
0x17F7471EACA78290 - PLAYERvoid
SPECIAL_ABILITY_DEPLETE_METER
``` p1 was always true. ``` ``` NativeDB Added Parameter 3: Any p2 ```
0x1D506DBBBC51E64B - PLAYERvoid
SPECIAL_ABILITY_FILL_METER
``` Also known as _RECHARGE_SPECIAL_ABILITY ``` ``` NativeDB Added Parameter 3: Any p2 ```
0x3DACA8DDC6FD4980
A living reference. Documentation coverage varies by native and source.