TasksClient

doesScriptedCoverPointExistAtCoords

DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS0xA98B8E3C088E5A31

The GTA V native DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS of the TASK namespace, as LS:MP client scripts call it: the global function doesScriptedCoverPointExistAtCoords, in JavaScript and in Lua.

SignatureJavaScript
doesScriptedCoverPointExistAtCoords(x: number, y: number, z: number): boolean
SignatureLua
doesScriptedCoverPointExistAtCoords(x: number, y: number, z: number): boolean

Usage

JavaScript
const result = doesScriptedCoverPointExistAtCoords(x, y, z);
Lua
local result = doesScriptedCoverPointExistAtCoords(x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
const result = doesScriptedCoverPointExistAtCoords(pos);
Lua · with vectors
local result = doesScriptedCoverPointExistAtCoords(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Checks if there is a cover point at position

Reference

Namespace
Tasks TASK
In the game
BOOL DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS(float x, float y, float z)
Hash
0xA98B8E3C088E5A31

Open in the interactive natives reference