getIsPetrolDecalInRange
GET_IS_PETROL_DECAL_IN_RANGE0x2F09F7976C512404The GTA V native GET_IS_PETROL_DECAL_IN_RANGE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function getIsPetrolDecalInRange, in JavaScript and in Lua.
getIsPetrolDecalInRange(
xCoord: number,
yCoord: number,
zCoord: number,
radius: number
): booleangetIsPetrolDecalInRange(
xCoord: number,
yCoord: number,
zCoord: number,
radius: number
): booleanUsage
JavaScript
const result = getIsPetrolDecalInRange(xCoord, yCoord, zCoord, radius);Lua
local result = getIsPetrolDecalInRange(xCoord, yCoord, zCoord, radius)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 = getIsPetrolDecalInRange(coord, radius);Lua · with vectors
local result = getIsPetrolDecalInRange(coord, radius)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
xCoord | float | number | number |
yCoord | float | number | number |
zCoord | float | number | number |
radius | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Graphics GRAPHICS
- In the game
BOOL GET_IS_PETROL_DECAL_IN_RANGE(float xCoord, float yCoord, float zCoord, float radius)- Hash
0x2F09F7976C512404