The Lab
PAD native

_GET_CURRENT_CONTROL_CONTEXT

returns Hash1 parambuild 1207

Returns the hash of the input context currently applied to the control group control.

Signature

C
Hash _GET_CURRENT_CONTROL_CONTEXT(int control); // 0xDDCEB0F26C89C00F b1207

Parameters

#NameType
1controlint

Facts

Facts about _GET_CURRENT_CONTROL_CONTEXT
Name
_GET_CURRENT_CONTROL_CONTEXT
Hash
0xDDCEB0F26C89C00F
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0xDDCEB0F26C89C00F, -- _GET_CURRENT_CONTROL_CONTEXT
  0, -- int control
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xDDCEB0F26C89C00F", // _GET_CURRENT_CONTROL_CONTEXT
  0, // int control
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xDDCEB0F26C89C00F, // _GET_CURRENT_CONTROL_CONTEXT
  0 // int control
);
All PAD natives

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