RedM Natives

GET_CONTROL_VALUE

Hash0xD95E79E8686D2C27
Runtime nameGetControlValue
NamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD95E79E8686D2C27

Signature

int GET_CONTROL_VALUE(int control, Hash action);

Parameters

NameTypeDescription
controlint—
actionHash—

Returns int

Usage

Lua
local retval = GetControlValue(control, action)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD95E79E8686D2C27, control, action, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetControlValue(control, action);

// by hash
const retval = Citizen.invokeNative('0xD95E79E8686D2C27', control, action, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xD95E79E8686D2C27, control, action);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.