setEntityCoordsNoOffset
SET_ENTITY_COORDS_NO_OFFSET0x239A3351AC1DA385The GTA V native SET_ENTITY_COORDS_NO_OFFSET of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityCoordsNoOffset, in JavaScript and in Lua.
setEntityCoordsNoOffset(
entity: Entity,
xPos: number,
yPos: number,
zPos: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
): voidsetEntityCoordsNoOffset(
entity: Entity,
xPos: number,
yPos: number,
zPos: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
)Usage
JavaScript
setEntityCoordsNoOffset(entity, xPos, yPos, zPos, xAxis, yAxis, zAxis);Lua
setEntityCoordsNoOffset(entity, xPos, yPos, zPos, xAxis, yAxis, zAxis)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setEntityCoordsNoOffset(entity, pos, xAxis, yAxis, zAxis);Lua · with vectors
setEntityCoordsNoOffset(entity, pos, xAxis, yAxis, zAxis)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
xPos | float | number | number |
yPos | float | number | number |
zPos | float | number | number |
xAxis | BOOL | boolean | boolean |
yAxis | BOOL | boolean | boolean |
zAxis | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Axis - Invert Axis Flags
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_COORDS_NO_OFFSET(Entity entity, float xPos, float yPos, float zPos, BOOL xAxis, BOOL yAxis, BOOL zAxis)- Hash
0x239A3351AC1DA385