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
- MISCvoid
SET_CREDITS_ACTIVE
Description not yet documented
0xB938B7E6D3C0620C - MISCvoid
SET_DISPATCH_IDEAL_SPAWN_DISTANCE
Description not yet documented
0x6FE601A64180D423 - MISCvoid
SET_DISPATCH_SPAWN_LOCATION
Description not yet documented
0xD10F442036302D50 - MISCvoid
SET_DISPATCH_TIME_BETWEEN_SPAWN_ATTEMPTS
Description not yet documented
0x44F7CBC1BEB3327D - MISCvoid
SET_DISPATCH_TIME_BETWEEN_SPAWN_ATTEMPTS_MULTIPLIER
Description not yet documented
0x48838ED9937A15D1 - MISCvoid
SET_EXPLOSIVE_AMMO_THIS_FRAME
Description not yet documented
0xA66C71C98D5F2CFB - MISCvoid
SET_EXPLOSIVE_MELEE_THIS_FRAME
Description not yet documented
0xFF1BED81BFDC0FE0 - MISCvoid
SET_FADE_IN_AFTER_DEATH_ARREST
``` Sets whether the game should fade in after the player dies or is arrested. ```
0xDA66D2796BA33F12 - MISCvoid
SET_FADE_IN_AFTER_LOAD
Description not yet documented
0xF3D78F59DFE18D79 - MISCvoid
SET_FADE_OUT_AFTER_ARREST
``` Sets whether the game should fade out after the player is arrested. ```
0x1E0B4DC0D990A4E7 - MISCvoid
SET_FADE_OUT_AFTER_DEATH
``` Sets whether the game should fade out after the player dies. ```
0x4A18E01DF2C87B86 - MISCvoid
SET_FAKE_WANTED_LEVEL
``` Sets a visually fake wanted level on the user interface. Used by Rockstar's scripts to "override" regular wanted levels and make custom ones while the real wanted level and multipliers are still in effect. Max is 6, anything above this makes it just 6. Also the mini-map gets the red & blue flashing effect. ```
0x1454F2448DE30163 - MISCvoid
SET_FIRE_AMMO_THIS_FRAME
Description not yet documented
0x11879CDD803D30F4 - MISCvoid
_SET_FORCE_PLAYER_TO_JUMP
``` NativeDB Introduced: v1180 ```
0xA1183BCFEE0F93D1 - MISCvoid
SET_GAME_PAUSED
``` Make sure to call this from the correct thread if you're using multiple threads because all other threads except the one which is calling SET_GAME_PAUSED will be paused which means you will lose control and the game remains in paused mode until you exit GTA5.exe ```
0x577D1284D6873711 - MISCvoid
SET_GRAVITY_LEVEL
```cpp enum eGravityLevel { GRAV_EARTH = 0, // earth gravity 9.8m/s2 GRAV_MOON = 1, // moon gravity 2.4m/s2 GRAV_LOW = 2, // very low gravity GRAV_ZERO = 3 // zero gravity } ```
0x740E14FAD5842351 - MISCvoid
SET_INCIDENT_REQUESTED_UNITS
Description not yet documented
0xB08B85D860E7BA3C - MISCvoid
_SET_INCIDENT_UNK
``` SET_INCIDENT_* ```
0xD261BA3E7E998072 - MISCvoid
SET_INSTANCE_PRIORITY_HINT
``` Sets an unknown flag used by CScene in determining which entities from CMapData scene nodes to draw, similar to SET_INSTANCE_PRIORITY_MODE. ```
0xC5F0A8EBD3F361CE - MISCvoid
SET_INSTANCE_PRIORITY_MODE
Sets the maximum prop density and changes a loading screen flag from 'loading story mode' to 'loading GTA Online'. It causes a loading screen to show as it reloads map data.
0x9BAE5AD2508DF078 - MISCvoid
SET_MINIGAME_IN_PROGRESS
Description not yet documented
0x19E00D7322C6F85B - MISCvoid
SET_MISSION_FLAG
``` If true, the player can't save the game. If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all. ^ also, if the mission flag is already set, the function does nothing at all ```
0xC4301E5121A0ED73 - MISCvoid
SET_OVERRIDE_WEATHER
Refer to [`SET_WEATHER_TYPE_NOW`](#\_0x29B487C359E19889) for weather types.
0xA43D5C6FE51ADBEF - MISCvoid
_SET_PLAYER_IS_IN_ANIMAL_FORM
``` If toggle is true, the ped's head is shown in the pause menu If toggle is false, the ped's head is not shown in the pause menu ```
0x4EBB7E87AA0DBED4 - MISCvoid
_SET_PLAYER_ROCKSTAR_EDITOR_DISABLED
``` SET_PLAYER_* ```
0x9D8D44ADBBA61EF2 - MISCvoid
_SET_RAIN_LEVEL
Controls rain, rain sounds and the creation of puddles. With an `level` higher than `0.5f`, only the creation of puddles gets faster, rain and rain sound won't increase after that. With an `level` of `0.0f` rain and rain sounds are disabled and there won't be any new puddles. To use the rain level of the current weather, call this native with `-1f` as `level`.
0x643E26EA6E024D92 - MISCvoid
SET_RANDOM_EVENT_FLAG
``` If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all. Does nothing if the mission flag is set. ```
0x971927086CFD2158 - MISCvoid
SET_RANDOM_SEED
Description not yet documented
0x444D98F98C11F3EC - MISCvoid
SET_RANDOM_WEATHER_TYPE
Description not yet documented
0x8B05F884CF7E8020 - MISCvoid
_SET_RESTART_CUSTOM_POSITION
Description not yet documented
0x706B5EDCAA7FA663 - MISCvoid
SET_RIOT_MODE_ENABLED
Activates riot mode. All NPCs are being hostile to each other (including player). Also the game will give weapons (pistols, smgs) to random NPCs.
0x2587A48BC88DFADF - MISCvoid
SET_SAVE_HOUSE
Description not yet documented
0x4F548CABEAE553BC - MISCvoid
SET_SAVE_MENU_ACTIVE
``` ignoreVehicle - bypasses vehicle check of the local player (it will not open if you are in a vehicle and this is set to false) ```
0xC9BF75D28165FF77 - MISCvoid
_SET_SNOW_LEVEL
``` NativeDB Introduced: v1868 ```
0x7F06937B0CDCBC1A - MISCvoid
SET_STUNT_JUMPS_CAN_TRIGGER
Description not yet documented
0xD79185689F8FD5DF - MISCvoid
SET_SUPER_JUMP_THIS_FRAME
Allows the player to perform super jumps. This function must be called every frame for it to work. It basically OR's a flag for a single frame, allowing the ped to perform a super jump only when the flag is set.
0x57FFF03E423A4C0B - MISCvoid
SET_THIS_SCRIPT_CAN_BE_PAUSED
Description not yet documented
0xAA391C728106F7AF - MISCvoid
SET_THIS_SCRIPT_CAN_REMOVE_BLIPS_CREATED_BY_ANY_SCRIPT
Normally, blips can only be removed by the script or resource that created them. However, this native function allows a script to bypass this logic and remove blips from any script.
0xB98236CAAECEF897 - MISCvoid
SET_TIME_SCALE
``` Maximum value is 1. At a value of 0 the game will still run at a minimum time scale. Slow Motion 1: 0.6 Slow Motion 2: 0.4 Slow Motion 3: 0.2 ```
0x1D408577D440E81E - MISCvoid
SET_WEATHER_TYPE_NOW
Immediately changes the game's weather to the specified type, which will then persist for one cycle before the game resumes its natural weather progression. **Note:** This native is not supported in networked sessions. Please refer to [`SET_OVERRIDE_WEATHER`](#\_0xA43D5C6FE51ADBEF) or [`SET_WEATHER_TYPE_NOW_PERSIST`](#\_0xED712CA327900C8A) if you want to override weather in networked sessions. ``` NativeDB Introduced: v323 ``` **Weather Types:** * CLEAR * EXTRASUNNY * CLOUDS * OVERCAST * RAIN * CLEARING * THUNDER * SMOG * FOGGY * XMAS * SNOW * SNOWLIGHT * BLIZZARD * HALLOWEEN * NEUTRAL * RAIN_HALLOWEEN * SNOW_HALLOWEEN
0x29B487C359E19889
A living reference. Documentation coverage varies by native and source.