SET_PARTICLE_FX_LOOPED_COLOUR
Hash
0x239879FC61C610CCRuntime name
SetParticleFxLoopedColourNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x7F8F65877F88783BSignature
void SET_PARTICLE_FX_LOOPED_COLOUR(int ptfxHandle, float r, float g, float b, BOOL p4);Parameters
| Name | Type | Description |
|---|---|---|
ptfxHandle | int | — |
r | float | — |
g | float | — |
b | float | — |
p4 | BOOL | — |
Returns void
Usage
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4)
-- always works, by hash
Citizen.InvokeNative(0x239879FC61C610CC, ptfxHandle, r, g, b, p4)JavaScript and C#
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4);
// by hash
Citizen.invokeNative('0x239879FC61C610CC', ptfxHandle, r + 0.0000001, g + 0.0000001, b + 0.0000001, p4);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.