RedM Natives

SET_PARTICLE_FX_LOOPED_COLOUR

Hash0x239879FC61C610CC
Runtime nameSetParticleFxLoopedColour
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7F8F65877F88783B

Signature

void SET_PARTICLE_FX_LOOPED_COLOUR(int ptfxHandle, float r, float g, float b, BOOL p4);

Parameters

NameTypeDescription
ptfxHandleint—
rfloat—
gfloat—
bfloat—
p4BOOL—

Returns void

Usage

Lua
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4)

-- always works, by hash
Citizen.InvokeNative(0x239879FC61C610CC, ptfxHandle, r, g, b, p4)
JavaScript and C#
JavaScript
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4);

// by hash
Citizen.invokeNative('0x239879FC61C610CC', ptfxHandle, r + 0.0000001, g + 0.0000001, b + 0.0000001, p4);
C#
Function.Call((Hash)0x239879FC61C610CC, ptfxHandle, r, g, b, p4);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.