{"hash":"0x8A7A8DAC","ns":"CFX","name":"SET_CURSOR_LOCATION","slug":"SET_CURSOR_LOCATION","official":true,"named":true,"luaName":"SetCursorLocation","game":"cfx","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float","description":"X position."},{"name":"y","type":"float","description":"Y position."}],"returnsDescription":"A boolean.","summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_CURSOR_LOCATION","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_CURSOR_LOCATION.md","snippets":{"lua":"local retval = SetCursorLocation(x, y)","luaInvoke":"local retval = Citizen.InvokeNative(0x8a7a8dac, x, y, Citizen.ReturnResultAnyway())","js":"const retval = SetCursorLocation(x, y);","jsInvoke":"const retval = Citizen.invokeNative('0x8a7a8dac', x + 0.0000001, y + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x8a7a8dac, x, y);","notes":["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."]}}