_SET_CONTROL_CONTEXT
Switches the control group control to the input context context, which changes how actions are mapped.
Signature
void _SET_CONTROL_CONTEXT(int control, Hash context); // 0x2804658EB7D8A50B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | context | Hash |
Facts
| Name | _SET_CONTROL_CONTEXT |
|---|---|
| Hash | 0x2804658EB7D8A50B |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x2804658EB7D8A50B, -- _SET_CONTROL_CONTEXT
0, -- int control
GetHashKey("name") -- Hash context
)Citizen.invokeNative("0x2804658EB7D8A50B", // _SET_CONTROL_CONTEXT
0, // int control
GetHashKey("name") // Hash context
);Function.Call((Hash)0x2804658EB7D8A50B, // _SET_CONTROL_CONTEXT
0, // int control
(uint)API.GetHashKey("name") // Hash context
);Related PAD natives
- _GET_CURRENT_CONTROL_CONTEXT
- SET_CONTROL_LIGHT_EFFECT_COLOR
- SET_CONTROL_LIGHT_EFFECT_FLASHING_COLOR
- SET_CONTROL_SHAKE
- SET_CONTROL_SHAKE_SUPPRESSED_ID
- SET_CONTROL_TRIGGER_SHAKE
- SET_CONTROL_VALUE_NEXT_FRAME
- _GET_DISABLED_CONTROL_HOW_LONG_AGO
- _IS_CONTROL_ACTION_VALID
- CLEAR_CONTROL_LIGHT_EFFECT
- CLEAR_CONTROL_SHAKE_SUPPRESSED_ID
- DISABLE_ALL_CONTROL_ACTIONS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.