_GET_CURRENT_CONTROL_CONTEXT
Gets the current control context.
Hash
0xDDCEB0F26C89C00FRuntime name
GetCurrentControlContextNamespacePAD
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Hash _GET_CURRENT_CONTROL_CONTEXT(int control);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
Returns Hash
Description
Gets the current control context. See: _SET_CONTROL_CONTEXT
Usage
local retval = GetCurrentControlContext(control)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDDCEB0F26C89C00F, control, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetCurrentControlContext(control);
// by hash
const retval = Citizen.invokeNative('0xDDCEB0F26C89C00F', control, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDDCEB0F26C89C00F, control);- 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.