{"hash":"0xE8A25867FBA3B05E","ns":"PAD","name":"SET_CONTROL_VALUE_NEXT_FRAME","slug":"SET_CONTROL_VALUE_NEXT_FRAME","official":true,"named":true,"luaName":"SetControlValueNextFrame","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"control","type":"int"},{"name":"action","type":"Hash"},{"name":"value","type":"float"}],"summary":"This is for simulating player input.","descriptions":[{"source":"alloc8or","format":"text","body":"This is for simulating player input.\nvalue is a float value from 0 - 1\n\ncontrol: see IS_CONTROL_ENABLED\n\nOld name: _SET_CONTROL_NORMAL"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xE8A25867FBA3B05E","gtaJhash":"","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PAD/SET_CONTROL_VALUE_NEXT_FRAME","markdownUrl":"https://natives.borderlinerp.com/natives/PAD/SET_CONTROL_VALUE_NEXT_FRAME.md","snippets":{"lua":"local retval = SetControlValueNextFrame(control, action, value)","luaInvoke":"local retval = Citizen.InvokeNative(0xE8A25867FBA3B05E, control, action, value, Citizen.ReturnResultAnyway())","js":"const retval = SetControlValueNextFrame(control, action, value);","jsInvoke":"const retval = Citizen.invokeNative('0xE8A25867FBA3B05E', control, action, value + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xE8A25867FBA3B05E, control, action, value);","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` ``.","Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}