The RedM 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 / RedM
Native reference
- PADBOOL
_0x1252C029FC8EBB4D
_IS_R* - _IS_S*
0x1252C029FC8EBB4D - PADAny
_0x43F35DDB2905D945
Description not yet documented
0x43F35DDB2905D945 - PADvoid
_0x52C68E92D6E23ADD
Description not yet documented
0x52C68E92D6E23ADD - PADvoid
_0x5F217BC1190503D8
rumbleCurve: common_0/data/rumblecurves.meta
0x5F217BC1190503D8 - PADvoid
_0x709BA8C08C5C008D
Description not yet documented
0x709BA8C08C5C008D - PADAny
_0xBD629C1C4F501C80
Description not yet documented
0xBD629C1C4F501C80 - PADvoid
CLEAR_CONTROL_LIGHT_EFFECT
nullsub, doesn't do anything
0xCB0360EFEFB2580D - PADvoid
CLEAR_CONTROL_SHAKE_SUPPRESSED_ID
Old name: _CLEAR_SUPPRESSED_PAD_RUMBLE
0xA0CEFCEA390AAB9B - 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
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 - PADint
GET_CONTROL_HOW_LONG_AGO
``` The number of milliseconds since last padIndex registered pressed ```
0xD7D22F5592AED8BA - 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 - PADHash
_GET_CURRENT_CONTROL_CONTEXT
Gets the current control context. See: _SET_CONTROL_CONTEXT
0xDDCEB0F26C89C00F - PADint
_GET_DISABLED_CONTROL_HOW_LONG_AGO
Description not yet documented
0x771DFCB24D19C2F6 - PADfloat
GET_DISABLED_CONTROL_NORMAL
Description not yet documented
0x11E65974A982637C - PADfloat
GET_DISABLED_CONTROL_UNBOUND_NORMAL
Description not yet documented
0x4F8A26A890FD62FB - PADBOOL
HAVE_CONTROLS_CHANGED
Description not yet documented
0x6CD79468A1E595C6 - PADBOOL
_IS_CONTROL_ACTION_VALID
Description not yet documented
0xBC0884BC590951C7 - 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_LOOK_INVERTED
Description not yet documented
0x77B612531280010D - PADBOOL
IS_USING_KEYBOARD_AND_MOUSE
padIndex is not used Old name: _IS_USING_KEYBOARD
0xA571D46727E2B718 - PADvoid
_SET_CONTROL_CONTEXT
Sets the current control context. Must be called every frame. context: https://alloc8or.re/rdr3/doc/misc/input_contexts.txt For more information, see common:/data/control/settings.meta https://github.com/femga/rdr3_discoveries/tree/master/Controls
0x2804658EB7D8A50B - PADvoid
SET_CONTROL_LIGHT_EFFECT_COLOR
nullsub, doesn't do anything Old name: _SET_CONTROL_GROUP_COLOR
0x8290252FFF36ACB5 - PADvoid
SET_CONTROL_LIGHT_EFFECT_FLASHING_COLOR
nullsub, doesn't do anything
0xA45884DB10EC7EE3 - PADvoid
SET_CONTROL_SHAKE
``` p0 always seems to be 0 duration in milliseconds frequency should range from about 10 (slow vibration) to 255 (very fast) example: SET_PAD_SHAKE(0, 100, 200); ```
0x48B3886C1358D0D5 - PADvoid
SET_CONTROL_SHAKE_SUPPRESSED_ID
Old name: SET_PAD_SHAKE_SUPPRESSED_ID
0xF239400E16C23E08 - PADvoid
SET_CONTROL_TRIGGER_SHAKE
**This native does absolutely nothing, just a nullsub**
0x14D29BB12D47F68C - PADBOOL
SET_CONTROL_VALUE_NEXT_FRAME
This is for simulating player input. value is a float value from 0 - 1 control: see IS_CONTROL_ENABLED Old name: _SET_CONTROL_NORMAL
0xE8A25867FBA3B05E - PADvoid
SET_INPUT_EXCLUSIVE
Description not yet documented
0xEDE476E5EE29EDB1 - PADvoid
STOP_CONTROL_SHAKE
Old name: STOP_PAD_SHAKE
0x38C16A305E8CDC8D
A living reference. Documentation coverage varies by native and source.