SET_ENTITY_COORDS
Sets the coordinates (world position) for a specified entity, offset by the radius of the entity on the Z axis. **This is the server-side RPC native equivalent of the client native [SET_ENTITY_COORDS](?\_0x06843DA7060A026B).**
CFX
Signature
lua
SetEntityCoords(entity, 0.0, 0.0, 0.0, true, true, true, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Entity | The entity to change coordinates for. | |
| float | The X coordinate. | |
| float | The Y coordinate. | |
| float | The Z coordinate, ground level. | |
| BOOL | Unused by the game, potentially used by debug builds of GTA in order to assert whether or not an entity was alive. | |
| BOOL | Whether to disable physics for dead peds, too, and not just living peds. | |
| BOOL | A special flag used for ragdolling peds. | |
| BOOL | Whether to clear any entities in the target area. |
Usage
lua
SetEntityCoords(entity, 0.0, 0.0, 0.0, true, true, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
