TasksClient

getScriptedCoverPointCoords

GET_SCRIPTED_COVER_POINT_COORDS0x594A1028FC2A3E85

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

SignatureJavaScript
getScriptedCoverPointCoords(
  coverpoint: ScrHandle
): { x: number, y: number, z: number }
SignatureLua
getScriptedCoverPointCoords(coverpoint: ScrHandle): Vector3

Usage

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

Parameters

ParameterTypeJavaScriptLua
coverpointScrHandlenumberinteger

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
Tasks TASK
In the game
Vector3 GET_SCRIPTED_COVER_POINT_COORDS(ScrHandle coverpoint)
Hash
0x594A1028FC2A3E85

Open in the interactive natives reference