GET_CONTROL_VALUE
Hash
0xD95E79E8686D2C27Runtime name
GetControlValueNamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD95E79E8686D2C27Signature
int GET_CONTROL_VALUE(int control, Hash action);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
action | Hash | — |
Returns int
Usage
local retval = GetControlValue(control, action)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD95E79E8686D2C27, control, action, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetControlValue(control, action);
// by hash
const retval = Citizen.invokeNative('0xD95E79E8686D2C27', control, action, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD95E79E8686D2C27, control, action);- 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`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.