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
- PADvoid
0x14D29BB12D47F68C
**This native does absolutely nothing, just a nullsub**
0x14D29BB12D47F68C - PADBOOL
0x23F09EADC01449D6
Hardcoded to return false.
0x23F09EADC01449D6 - PADAny
0x25AAA32BDC98F2A3
``` NativeDB Introduced: v1365 ```
0x25AAA32BDC98F2A3 - PADvoid
0x5B73C77D9EB66E24
Description not yet documented
0x5B73C77D9EB66E24 - PADBOOL
0x6CD79468A1E595C6
Description not yet documented
0x6CD79468A1E595C6 - PADvoid
0xA0CEFCEA390AAB9B
Description not yet documented
0xA0CEFCEA390AAB9B - PADvoid
0xCB0360EFEFB2580D
Description not yet documented
0xCB0360EFEFB2580D - PADBOOL
0xE1615EC03B3BB4FD
``` Used with IS_LOOK_INVERTED() and negates its affect. -- Not sure how the person above got that description, but here's an actual example: if (PAD::_GET_LAST_INPUT_METHOD(2)) { if (a_5) { if (PAD::IS_LOOK_INVERTED()) { a_3 *= -1; } if (PAD::_E1615EC03B3BB4FD()) { a_3 *= -1; } } } ```
0xE1615EC03B3BB4FD - PADvoid
0xF239400E16C23E08
Description not yet documented
0xF239400E16C23E08 - PADvoid
DISABLE_ALL_CONTROL_ACTIONS
Description not yet documented
0x5F4B6931816E599B - PADvoid
DISABLE_CONTROL_ACTION
[Control values and meaning](https://docs.fivem.net/docs/game-references/controls/#controls) Example: `CONTROLS::DISABLE_CONTROL_ACTION(2, 19, true)` disables the switching UI from appearing both when using a keyboard and Xbox 360 controller. Needs to be executed each frame. Control group 1 and 0 gives the same results as 2. Same results for all players.
0xFE99B66D079CF6BC - PADvoid
_DISABLE_INPUT_GROUP
Description not yet documented
0x7F4724035FDCA1DD - PADvoid
ENABLE_ALL_CONTROL_ACTIONS
```cpp enum ePadType { PLAYER_CONTROL = 0, CAMERA_CONTROL = 1, FRONTEND_CONTRO = 2 }; ```
0xA5FFE9B05F199DE7 - PADvoid
ENABLE_CONTROL_ACTION
``` control values and meaning: https://github.com/scripthookvdotnet/scripthookvdotnet/blob/47f8bb02a50e27d4bb982f43a78091feac59b21c/source/scripting_v3/GTA/Control.cs and https://docs.fivem.net/game-references/controls/ 0, 1 and 2 used in the scripts. Control values from the decompiled scripts: 0,1,2,3,4,5,6,8,9,10,11,14,15,16,17,19,21,22,24,25,26,30,31,32,33,34,35,36, 37,44,46,47,59,60,65,68,69,70,71,72,73,74,75,76,79,80,81,82,86,95,98,99,100 ,101,114,140,141,143,172,173,174,175,176,177,178,179,180,181,187,188,189,19 0,195,196,197,198,199,201,202,203,204,205,206,207,208,209,210,217,218,219,2 20,221,225,228,229,230,231,234,235,236,237,238,239,240,241,242,245,246,257, 261,262,263,264,286,287,288,289,337,338,339,340,341,342,343 INPUTGROUP_MOVE INPUTGROUP_LOOK INPUTGROUP_WHEEL INPUTGROUP_CELLPHONE_NAVIGATE INPUTGROUP_CELLPHONE_NAVIGATE_UD INPUTGROUP_CELLPHONE_NAVIGATE_LR INPUTGROUP_FRONTEND_DPAD_ALL INPUTGROUP_FRONTEND_DPAD_UD INPUTGROUP_FRONTEND_DPAD_LR INPUTGROUP_FRONTEND_LSTICK_ALL INPUTGROUP_FRONTEND_RSTICK_ALL INPUTGROUP_FRONTEND_GENERIC_UD INPUTGROUP_FRONTEND_GENERIC_LR INPUTGROUP_FRONTEND_GENERIC_ALL INPUTGROUP_FRONTEND_BUMPERS INPUTGROUP_FRONTEND_TRIGGERS INPUTGROUP_FRONTEND_STICKS INPUTGROUP_SCRIPT_DPAD_ALL INPUTGROUP_SCRIPT_DPAD_UD INPUTGROUP_SCRIPT_DPAD_LR INPUTGROUP_SCRIPT_LSTICK_ALL INPUTGROUP_SCRIPT_RSTICK_ALL INPUTGROUP_SCRIPT_BUMPERS INPUTGROUP_SCRIPT_TRIGGERS INPUTGROUP_WEAPON_WHEEL_CYCLE INPUTGROUP_FLY INPUTGROUP_SUB INPUTGROUP_VEH_MOVE_ALL INPUTGROUP_CURSOR INPUTGROUP_CURSOR_SCROLL INPUTGROUP_SNIPER_ZOOM_SECONDARY INPUTGROUP_VEH_HYDRAULICS_CONTROL Took those in IDA Pro.Not sure in which order they go ```
0x351220255D64C155 - PADBOOL
GET_ALLOW_MOVEMENT_WHILE_ZOOMED
``` Returns profile setting 17. ```
0xFC859E2374407556 - PADchar*
GET_CONTROL_GROUP_INSTRUCTIONAL_BUTTON
Description not yet documented
0x80C2FD58D720C801 - PADchar*
GET_CONTROL_INSTRUCTIONAL_BUTTON
``` formerly called _GET_CONTROL_ACTION_NAME incorrectly p2 appears to always be true. p2 is unused variable in function. EG: GET_CONTROL_INSTRUCTIONAL_BUTTON (2, 201, 1) /*INPUT_FRONTEND_ACCEPT (e.g. Enter button)*/ GET_CONTROL_INSTRUCTIONAL_BUTTON (2, 202, 1) /*INPUT_FRONTEND_CANCEL (e.g. ESC button)*/ GET_CONTROL_INSTRUCTIONAL_BUTTON (2, 51, 1) /*INPUT_CONTEXT (e.g. E button)*/ gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378 0, 1 and 2 used in the scripts. 0 is by far the most common of them. ```
0x0499D7B09FC9B407 - PADfloat
GET_CONTROL_NORMAL
Description not yet documented
0xEC3C9B8D5327B563 - PADfloat
GET_CONTROL_UNBOUND_NORMAL
``` Seems to return values between -1 and 1 for controls like gas and steering. ```
0x5B84D09CEC5209C5 - PADint
GET_CONTROL_VALUE
Description not yet documented
0xD95E79E8686D2C27 - PADfloat
GET_DISABLED_CONTROL_NORMAL
Description not yet documented
0x11E65974A982637C - PADfloat
GET_DISABLED_CONTROL_UNBOUND_NORMAL
Description not yet documented
0x4F8A26A890FD62FB - PADBOOL
GET_IS_USING_ALTERNATE_DRIVEBY
``` Returns profile setting 225. ```
0x0F70731BACCFBB96 - PADint
GET_LOCAL_PLAYER_AIM_STATE
Returns the local player's targeting mode. See [`SET_PLAYER_TARGETING_MODE`](#\_0xB1906895227793F3).
0xBB41AFBBBC0A0287 - PADint
GET_LOCAL_PLAYER_GAMEPAD_AIM_STATE
Same behavior as [`GET_LOCAL_PLAYER_AIM_STATE`](#\_0xBB41AFBBBC0A0287) but will also return if player using a keyboard.
0x59B9A7AF4C95133C - PADint
_GET_TIME_SINCE_LAST_INPUT
``` The number of milliseconds since last padIndex registered pressed ```
0xD7D22F5592AED8BA - PADBOOL
IS_CONTROL_ENABLED
Description not yet documented
0x1CEA6BFDF248E5D9 - PADBOOL
IS_CONTROL_JUST_PRESSED
Returns whether a control was newly pressed since the last check.
0x580417101DDB492F - PADBOOL
IS_CONTROL_JUST_RELEASED
Returns whether a control was newly released since the last check.
0x50F940259D3841E6 - PADBOOL
IS_CONTROL_PRESSED
Returns whether a control is currently pressed.
0xF3A21BCD95725A4A - PADBOOL
IS_CONTROL_RELEASED
Returns whether a control is currently *not* pressed.
0x648EE3E7F38877DD - PADBOOL
IS_DISABLED_CONTROL_JUST_PRESSED
Description not yet documented
0x91AEF906BCA88877 - PADBOOL
IS_DISABLED_CONTROL_JUST_RELEASED
Description not yet documented
0x305C8DCD79DA8B0F - PADBOOL
IS_DISABLED_CONTROL_PRESSED
Description not yet documented
0xE2587F8CBBD87B1D - PADBOOL
_IS_DISABLED_CONTROL_RELEASED
Description not yet documented
0xFB6C4072E9A32E92 - PADBOOL
IS_LOOK_INVERTED
Description not yet documented
0x77B612531280010D - PADBOOL
_IS_USING_KEYBOARD
Description not yet documented
0xA571D46727E2B718 - PADBOOL
_IS_USING_KEYBOARD_2
Description not yet documented
0x13337B38DB572509 - PADvoid
_RESET_INPUT_MAPPING_SCHEME
``` S* ```
0x643ED62D5EA3BEBD - PADvoid
_SET_CONTROL_LIGHT_EFFECT_COLOR
Description not yet documented
0x8290252FFF36ACB5
A living reference. Documentation coverage varies by native and source.