GraphicsClient

setParticleFxLoopedColour

SET_PARTICLE_FX_LOOPED_COLOUR0x7F8F65877F88783B

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

SignatureJavaScript
setParticleFxLoopedColour(
  ptfxHandle: number,
  r: number,
  g: number,
  b: number,
  p4: boolean
): void
SignatureLua
setParticleFxLoopedColour(
  ptfxHandle: integer,
  r: number,
  g: number,
  b: number,
  p4: boolean
)

Usage

JavaScript
setParticleFxLoopedColour(ptfxHandle, r, g, b, p4);
Lua
setParticleFxLoopedColour(ptfxHandle, r, g, b, p4)

Parameters

ParameterTypeJavaScriptLua
ptfxHandleintnumberinteger
rfloatnumbernumber
gfloatnumbernumber
bfloatnumbernumber
p4BOOLbooleanboolean

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.

only works on some fx's

p4 = 0

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_PARTICLE_FX_LOOPED_COLOUR(int ptfxHandle, float r, float g, float b, BOOL p4)
Hash
0x7F8F65877F88783B

Open in the interactive natives reference