{"hash":"0x2804658EB7D8A50B","ns":"PAD","name":"_SET_CONTROL_CONTEXT","slug":"_SET_CONTROL_CONTEXT","official":false,"named":true,"luaName":"SetControlContext","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"control","type":"int"},{"name":"context","type":"Hash"}],"summary":"Sets the current control context.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets the current control context. Must be called every frame.\n\ncontext: https://alloc8or.re/rdr3/doc/misc/input_contexts.txt\nFor more information, see common:/data/control/settings.meta\nhttps://github.com/femga/rdr3_discoveries/tree/master/Controls"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PAD/_SET_CONTROL_CONTEXT","markdownUrl":"https://natives.borderlinerp.com/natives/PAD/_SET_CONTROL_CONTEXT.md","snippets":{"lua":"SetControlContext(control, context)","luaInvoke":"Citizen.InvokeNative(0x2804658EB7D8A50B, control, context)","js":"SetControlContext(control, context);","jsInvoke":"Citizen.invokeNative('0x2804658EB7D8A50B', control, context);","csharp":"Function.Call((Hash)0x2804658EB7D8A50B, control, context);","notes":["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` ``.","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."]}}