{"hash":"0xDDCEB0F26C89C00F","ns":"PAD","name":"_GET_CURRENT_CONTROL_CONTEXT","slug":"_GET_CURRENT_CONTROL_CONTEXT","official":false,"named":true,"luaName":"GetCurrentControlContext","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"control","type":"int"}],"summary":"Gets the current control context.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets the current control context. See: _SET_CONTROL_CONTEXT"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PAD/_GET_CURRENT_CONTROL_CONTEXT","markdownUrl":"https://natives.borderlinerp.com/natives/PAD/_GET_CURRENT_CONTROL_CONTEXT.md","snippets":{"lua":"local retval = GetCurrentControlContext(control)","luaInvoke":"local retval = Citizen.InvokeNative(0xDDCEB0F26C89C00F, control, Citizen.ResultAsInteger())","js":"const retval = GetCurrentControlContext(control);","jsInvoke":"const retval = Citizen.invokeNative('0xDDCEB0F26C89C00F', control, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xDDCEB0F26C89C00F, control);","notes":["The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}