The Lab
PAD native

_SET_CONTROL_CONTEXT

returns void2 paramsbuild 1207

Switches the control group control to the input context context, which changes how actions are mapped.

Signature

C
void _SET_CONTROL_CONTEXT(int control, Hash context); // 0x2804658EB7D8A50B b1207

Parameters

#NameType
1controlint
2contextHash

Facts

Facts about _SET_CONTROL_CONTEXT
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.

Lua
Citizen.InvokeNative(0x2804658EB7D8A50B, -- _SET_CONTROL_CONTEXT
  0, -- int control
  GetHashKey("name") -- Hash context
)
JavaScript
Citizen.invokeNative("0x2804658EB7D8A50B", // _SET_CONTROL_CONTEXT
  0, // int control
  GetHashKey("name") // Hash context
);
C#
Function.Call((Hash)0x2804658EB7D8A50B, // _SET_CONTROL_CONTEXT
  0, // int control
  (uint)API.GetHashKey("name") // Hash context
);
All PAD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.