_SET_CONTROL_CONTEXT
Sets the current control context.
Hash
0x2804658EB7D8A50BRuntime name
SetControlContextNamespacePAD
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_CONTROL_CONTEXT(int control, Hash context);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
context | Hash | — |
Returns void
Description
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
Usage
SetControlContext(control, context)
-- always works, by hash
Citizen.InvokeNative(0x2804658EB7D8A50B, control, context)JavaScript and C#
SetControlContext(control, context);
// by hash
Citizen.invokeNative('0x2804658EB7D8A50B', control, context);Function.Call((Hash)0x2804658EB7D8A50B, control, context);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.