_SET_ENTITY_COORDS_AND_HEADING
Teleports the entity to the given coordinates and sets its heading in one call.
Signature
void _SET_ENTITY_COORDS_AND_HEADING(Entity entity, float xPos, float yPos, float zPos, float heading, BOOL xAxis, BOOL yAxis, BOOL zAxis); // 0x203BEFFDBE12E96A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | xPos | float |
| 3 | yPos | float |
| 4 | zPos | float |
| 5 | heading | float |
| 6 | xAxis | BOOL |
| 7 | yAxis | BOOL |
| 8 | zAxis | BOOL |
Facts
| Name | _SET_ENTITY_COORDS_AND_HEADING |
|---|---|
| Hash | 0x203BEFFDBE12E96A |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x203BEFFDBE12E96A, -- _SET_ENTITY_COORDS_AND_HEADING
PlayerPedId(), -- Entity entity
0.0, -- float xPos
0.0, -- float yPos
0.0, -- float zPos
0.0, -- float heading
false, -- BOOL xAxis
false, -- BOOL yAxis
false -- BOOL zAxis
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x203BEFFDBE12E96A", // _SET_ENTITY_COORDS_AND_HEADING
PlayerPedId(), // Entity entity
0.0, // float xPos
0.0, // float yPos
0.0, // float zPos
0.0, // float heading
false, // BOOL xAxis
false, // BOOL yAxis
false // BOOL zAxis
);Function.Call((Hash)0x203BEFFDBE12E96A, // _SET_ENTITY_COORDS_AND_HEADING
API.PlayerPedId(), // Entity entity
0.0f, // float xPos
0.0f, // float yPos
0.0f, // float zPos
0.0f, // float heading
false, // BOOL xAxis
false, // BOOL yAxis
false // BOOL zAxis
);Related ENTITY natives
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- _SET_ENTITY_CARCASS_TYPE
- _SET_ENTITY_CARRYING_FLAG
- _SET_ENTITY_CUSTOM_PICKUP_RADIUS
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- _SET_ENTITY_ATTACHED_OFFSET
- _SET_ENTITY_DISABLE_FIRE
- _SET_ENTITY_FADE_IN
- _SET_ENTITY_FULLY_LOOTED
- _SET_ENTITY_LIGHTS_ENABLED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.