GraphicsClient

fadeDecalsInRange

FADE_DECALS_IN_RANGE0xD77EDADB0420E6E0

The GTA V native FADE_DECALS_IN_RANGE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function fadeDecalsInRange, in JavaScript and in Lua.

SignatureJavaScript
fadeDecalsInRange(
  x: number,
  y: number,
  z: number,
  p3: number,
  p4: number
): void
SignatureLua
fadeDecalsInRange(x: number, y: number, z: number, p3: number, p4: number)

Usage

JavaScript
fadeDecalsInRange(x, y, z, p3, p4);
Lua
fadeDecalsInRange(x, y, z, p3, p4)

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
fadeDecalsInRange(pos, p3, p4);
Lua · with vectors
fadeDecalsInRange(pos, p3, p4)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
p3floatnumbernumber
p4floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Fades nearby decals within the range specified

Reference

Namespace
Graphics GRAPHICS
In the game
void FADE_DECALS_IN_RANGE(float x, float y, float z, float p3, float p4)
Hash
0xD77EDADB0420E6E0

Open in the interactive natives reference