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
- MISCBOOL
GET_GROUND_Z_FOR_3D_COORD
This native gets the ground level (ground elevation) and returns the Z coordinate that represents it. Note: This native can only calculate the elevation when the coordinates are within the render distance of the client. ``` NativeDB Added Parameter 6: BOOL p5 ```
0xC906A7DAB05C8D2B - MISCHash
GET_HASH_KEY
This native converts its past string to hash. It is hashed using jenkins one at a time method.
0xD24D37CC275948CC - MISCfloat
GET_HEADING_FROM_VECTOR_2D
``` dx = x1 - x2 dy = y1 - y2 ```
0x2FFB6B224F4B2926 - MISCint
GET_INDEX_OF_CURRENT_LEVEL
Description not yet documented
0xCBAD6729F7B1F4FC - MISCBOOL
GET_IS_AUTO_SAVE_OFF
``` Returns true if profile setting 208 is equal to 0. ```
0x6E04F06094C87047 - MISCBOOL
_GET_IS_PLAYER_IN_ANIMAL_FORM
``` Although we don't have a jenkins hash for this one, the name is 100% confirmed. ```
0x9689123E3F213AA5 - MISCBOOL
GET_LINE_PLANE_INTERSECTION
Determines whether a line segment intersects a plane and, if so, returns the parameter value at which this intersection occurs. ``` NativeDB Introduced: v323 ```
0xF56DFB7B61BE7276 - MISCBOOL
GET_MISSION_FLAG
Description not yet documented
0xA33CDCCDA663159E - MISCvoid
GET_MODEL_DIMENSIONS
``` Gets the dimensions of a model. Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is. Example from the scripts: MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()), &v_1A, &v_17); ```
0x03E8D3D5F549087A - MISCHash
GET_NEXT_WEATHER_TYPE_HASH_NAME
Refer to [`SET_WEATHER_TYPE_NOW`](#\_0x29B487C359E19889) for weather types.
0x711327CD09C8F162 - MISCint
GET_NUMBER_OF_FREE_STACKS_OF_THIS_SIZE
Description not yet documented
0xFEAD16FC8F9DFC0F - MISCint
_GET_NUM_DISPATCHED_UNITS_FOR_PLAYER
Description not yet documented
0xEB4A0C2D56441717 - MISCint
GET_NUM_SUCCESSFUL_STUNT_JUMPS
Description not yet documented
0x996DD1E1E02F1008 - MISCchar*
GET_ONSCREEN_KEYBOARD_RESULT
``` Returns NULL unless UPDATE_ONSCREEN_KEYBOARD() returns 1 in the same tick. ```
0x8362B09B91893647 - MISCint
_GET_POWER_SAVING_MODE_DURATION
``` Returns duration of how long the game has been in power-saving mode (aka "constrained") in milliseconds. ```
0xABB2FA71C83A1B72 - MISCHash
GET_PREV_WEATHER_TYPE_HASH_NAME
Refer to [`SET_WEATHER_TYPE_NOW`](#\_0x29B487C359E19889) for weather types.
0x564B884A05EC45A3 - MISCint
GET_PROFILE_SETTING
Description not yet documented
0xC488FF2356EA7791 - MISCBOOL
_GET_PROJECTILE_NEAR_PED
Description not yet documented
0x82FDE6A57EE4EE44 - MISCfloat
GET_RAIN_LEVEL
Description not yet documented
0x96695E368AD855F3 - MISCBOOL
GET_RANDOM_EVENT_FLAG
Description not yet documented
0xD2D57F1D764117B1 - MISCfloat
GET_RANDOM_FLOAT_IN_RANGE
Description not yet documented
0x313CE5879CEB6FCD - MISCint
GET_RANDOM_INT_IN_RANGE
Description not yet documented
0xD53343AA4FB7DD28 - MISCint
_GET_RANDOM_INT_IN_RANGE_2
``` NativeDB Introduced: v1734 ```
0xF2D49816A804D134 - MISCint
GET_REPLAY_STAT_AT_INDEX
Description not yet documented
0x8098C8D6597AAE18 - MISCint
GET_REPLAY_STAT_COUNT
Description not yet documented
0xDC9274A7EF6B2867 - MISCint
GET_REPLAY_STAT_MISSION_TYPE
Description not yet documented
0x2B626A0150E4D449 - MISCint
GET_SIZE_OF_SAVE_DATA
Description not yet documented
0xA09F896CE912481F - MISCfloat
GET_SNOW_LEVEL
Description not yet documented
0xC5868A966E5BE3AE - MISCint
GET_STATUS_OF_MISSION_REPEAT_SAVE
Description not yet documented
0x2B5E102E4A42F2BF - MISCBOOL
GET_TENNIS_SWING_ANIM_COMPLETE
Description not yet documented
0x17DF68D720AA77F8 - MISCint
GET_TOTAL_SUCCESSFUL_STUNT_JUMPS
Description not yet documented
0x6856EC3D35C81EA4 - MISCvoid
_GET_WEATHER_TYPE_TRANSITION
Refer to [`SET_WEATHER_TYPE_NOW`](#\_0x29B487C359E19889) for weather types.
0xF3BBE884A14BB413 - MISCVector3
GET_WIND_DIRECTION
Used for hunting in singleplayer and for golfing in both sp and online. The [`GET_HEADING_FROM_VECTOR_2D`](#\_0x2FFB6B224F4B2926) native can be used to get the wind heading from the direction.
0x1F400FEF721170DA - MISCfloat
GET_WIND_SPEED
Description not yet documented
0xA8CF1CC0AFCD3F12 - MISCBOOL
_HAS_ASYNC_INSTALL_FINISHED
``` Hardcoded to always return true. ```
0x14832BF2ABA53FC5 - MISCBOOL
HAS_BULLET_IMPACTED_IN_AREA
``` p3 - possibly radius? ```
0x9870ACFB89A90995 - MISCBOOL
HAS_BULLET_IMPACTED_IN_BOX
Description not yet documented
0xDC8C5D7CFEAB8394 - MISCBOOL
_HAS_BUTTON_COMBINATION_JUST_BEEN_ENTERED
``` This native appears on the cheat_controller script and tracks a combination of buttons, which may be used to toggle cheats in-game. Credits to ThreeSocks for the info. The hash contains the combination, while the "amount" represents the amount of buttons used in a combination. INT_SCORES_SCORTED was a hash collision ```
0x071E2A839DE82D90 - MISCBOOL
_HAS_CHEAT_STRING_JUST_BEEN_ENTERED
``` Get inputted "Cheat code", for example: while (TRUE) { if (MISC::_557E43C447E700A8(${fugitive})) { // Do something. } SYSTEM::WAIT(0); } Calling this will also set the last saved string hash to zero. ```
0x557E43C447E700A8 - MISCBOOL
_HAS_RESUMED_FROM_SUSPEND
``` Hardcoded to return false. ```
0xE8B9C0EC9E183F35
A living reference. Documentation coverage varies by native and source.