getPickupCoords
GET_PICKUP_COORDS0x225B8B35C88029B3The GTA V native GET_PICKUP_COORDS of the OBJECT namespace, as LS:MP client scripts call it: the global function getPickupCoords, in JavaScript and in Lua.
getPickupCoords(pickup: Pickup): { x: number, y: number, z: number }getPickupCoords(pickup: Pickup): Vector3Usage
JavaScript
const { x, y, z } = getPickupCoords(pickup);Lua
local coords = getPickupCoords(pickup)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pickup | Pickup | 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
- Object OBJECT
- In the game
Vector3 GET_PICKUP_COORDS(Pickup pickup)- Hash
0x225B8B35C88029B3