NetworkClient

networkGetLastEntityPosReceivedOverNetwork

NETWORK_GET_LAST_ENTITY_POS_RECEIVED_OVER_NETWORK0x64D779659BC37B19

The GTA V native NETWORK_GET_LAST_ENTITY_POS_RECEIVED_OVER_NETWORK of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetLastEntityPosReceivedOverNetwork, in JavaScript and in Lua.

SignatureJavaScript
networkGetLastEntityPosReceivedOverNetwork(
  entity: Entity
): { x: number, y: number, z: number }
SignatureLua
networkGetLastEntityPosReceivedOverNetwork(entity: Entity): Vector3

Usage

JavaScript
const { x, y, z } = networkGetLastEntityPosReceivedOverNetwork(entity);
Lua
local coords = networkGetLastEntityPosReceivedOverNetwork(entity)
-- coords.x, coords.y, coords.z

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
Network NETWORK
In the game
Vector3 NETWORK_GET_LAST_ENTITY_POS_RECEIVED_OVER_NETWORK(Entity entity)
Hash
0x64D779659BC37B19
Introduced
Game build 393 legacy numbering

Open in the interactive natives reference