doesScriptedCoverPointExistAtCoords
DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS0xA98B8E3C088E5A31The 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.
doesScriptedCoverPointExistAtCoords(x: number, y: number, z: number): booleandoesScriptedCoverPointExistAtCoords(x: number, y: number, z: number): booleanUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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