{"hash":"0xDF70B41B","ns":"CFX","name":"SET_ENTITY_COORDS","slug":"SET_ENTITY_COORDS","official":true,"named":true,"luaName":"SetEntityCoords","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"entity","type":"Entity","description":"The entity to change coordinates for."},{"name":"xPos","type":"float","description":"The X coordinate."},{"name":"yPos","type":"float","description":"The Y coordinate."},{"name":"zPos","type":"float","description":"The Z coordinate, ground level."},{"name":"alive","type":"BOOL","description":"Unused by the game, potentially used by debug builds of GTA in order to assert whether or not an entity was alive."},{"name":"deadFlag","type":"BOOL","description":"Whether to disable physics for dead peds, too, and not just living peds."},{"name":"ragdollFlag","type":"BOOL","description":"A special flag used for ragdolling peds."},{"name":"clearArea","type":"BOOL","description":"Whether to clear any entities in the target area."}],"summary":"Sets the coordinates (world position) for a specified entity, offset by the radius of the entity on the Z axis.","descriptions":[{"source":"cfx","format":"md","body":"Sets the coordinates (world position) for a specified entity, offset by the radius of the entity on the Z axis.\n\n**This is the server-side RPC native equivalent of the client native [SET_ENTITY_COORDS](?\\_0x06843DA7060A026B).**"}],"examples":[],"aliases":[],"enums":[],"related":["0x1647F1CB"],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_COORDS.md","snippets":{"lua":"SetEntityCoords(entity, xPos, yPos, zPos, alive, deadFlag, ragdollFlag, clearArea)","luaInvoke":"Citizen.InvokeNative(0xdf70b41b, entity, xPos, yPos, zPos, alive, deadFlag, ragdollFlag, clearArea)","js":"SetEntityCoords(entity, xPos, yPos, zPos, alive, deadFlag, ragdollFlag, clearArea);","jsInvoke":"Citizen.invokeNative('0xdf70b41b', entity, xPos + 0.0000001, yPos + 0.0000001, zPos + 0.0000001, alive, deadFlag, ragdollFlag, clearArea);","csharp":"Function.Call((Hash)0xdf70b41b, entity, xPos, yPos, zPos, alive, deadFlag, ragdollFlag, clearArea);","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."]}}