EntityClient

setEntityCoordsNoOffset

SET_ENTITY_COORDS_NO_OFFSET0x239A3351AC1DA385

The 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.

SignatureJavaScript
setEntityCoordsNoOffset(
  entity: Entity,
  xPos: number,
  yPos: number,
  zPos: number,
  xAxis: boolean,
  yAxis: boolean,
  zAxis: boolean
): void
SignatureLua
setEntityCoordsNoOffset(
  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

ParameterTypeJavaScriptLua
entityEntitynumberinteger
xPosfloatnumbernumber
yPosfloatnumbernumber
zPosfloatnumbernumber
xAxisBOOLbooleanboolean
yAxisBOOLbooleanboolean
zAxisBOOLbooleanboolean

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

Open in the interactive natives reference