RedM Natives

SET_PARTICLE_FX_NON_LOOPED_COLOUR

Hash0x60B85BED6577A35B
Runtime nameSetParticleFxNonLoopedColour
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x26143A59EF48B262

Signature

void SET_PARTICLE_FX_NON_LOOPED_COLOUR(float r, float g, float b);

Parameters

NameTypeDescription
rfloat—
gfloat—
bfloat—

Returns void

Usage

Lua
SetParticleFxNonLoopedColour(r, g, b)

-- always works, by hash
Citizen.InvokeNative(0x60B85BED6577A35B, r, g, b)
JavaScript and C#
JavaScript
SetParticleFxNonLoopedColour(r, g, b);

// by hash
Citizen.invokeNative('0x60B85BED6577A35B', r + 0.0000001, g + 0.0000001, b + 0.0000001);
C#
Function.Call((Hash)0x60B85BED6577A35B, r, g, b);
  • 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.