getScriptedCoverPointCoords
GET_SCRIPTED_COVER_POINT_COORDS0x594A1028FC2A3E85The GTA V native GET_SCRIPTED_COVER_POINT_COORDS of the TASK namespace, as LS:MP client scripts call it: the global function getScriptedCoverPointCoords, in JavaScript and in Lua.
getScriptedCoverPointCoords(
coverpoint: ScrHandle
): { x: number, y: number, z: number }getScriptedCoverPointCoords(coverpoint: ScrHandle): Vector3Usage
JavaScript
const { x, y, z } = getScriptedCoverPointCoords(coverpoint);Lua
local coords = getScriptedCoverPointCoords(coverpoint)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
coverpoint | ScrHandle | 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
- Tasks TASK
- In the game
Vector3 GET_SCRIPTED_COVER_POINT_COORDS(ScrHandle coverpoint)- Hash
0x594A1028FC2A3E85