networkGetLastEntityPosReceivedOverNetwork
NETWORK_GET_LAST_ENTITY_POS_RECEIVED_OVER_NETWORK0x64D779659BC37B19The 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.
networkGetLastEntityPosReceivedOverNetwork(
entity: Entity
): { x: number, y: number, z: number }networkGetLastEntityPosReceivedOverNetwork(entity: Entity): Vector3Usage
JavaScript
const { x, y, z } = networkGetLastEntityPosReceivedOverNetwork(entity);Lua
local coords = networkGetLastEntityPosReceivedOverNetwork(entity)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3A 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