{"hash":"0xE10198D5","ns":"CFX","name":"SET_DRAW_ORIGIN","slug":"SET_DRAW_ORIGIN","official":true,"named":true,"luaName":"SetDrawOrigin","game":"cfx","apiset":"client","returnType":"void","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"is2d","type":"BOOL"}],"summary":"Sets the on-screen drawing origin for draw-functions in world coordinates.","descriptions":[{"source":"cfx","format":"md","body":"Sets the on-screen drawing origin for draw-functions in world coordinates.\n\nThe effect can be reset by calling [`CLEAR_DRAW_ORIGIN`](#\\_0xDD76B263) and is limited to 32 different origins each frame."}],"examples":[],"aliases":[],"enums":[],"related":["0xDD76B263"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_DRAW_ORIGIN","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_DRAW_ORIGIN.md","snippets":{"lua":"SetDrawOrigin(x, y, z, is2d)","luaInvoke":"Citizen.InvokeNative(0xe10198d5, x, y, z, is2d)","js":"SetDrawOrigin(x, y, z, is2d);","jsInvoke":"Citizen.invokeNative('0xe10198d5', x + 0.0000001, y + 0.0000001, z + 0.0000001, is2d);","csharp":"Function.Call((Hash)0xe10198d5, x, y, z, is2d);","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."]}}