# GRAPHICS::SET_PARTICLE_FX_LOOPED_COLOUR

- **Hash:** `0x239879FC61C610CC`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `SetParticleFxLoopedColour`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/SET_PARTICLE_FX_LOOPED_COLOUR

## Signature

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

## Parameters

- `ptfxHandle` (`int`)
- `r` (`float`)
- `g` (`float`)
- `b` (`float`)
- `p4` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4)

-- always available, by hash
Citizen.InvokeNative(0x239879FC61C610CC, ptfxHandle, r, g, b, p4)
```

### JavaScript

```js
SetParticleFxLoopedColour(ptfxHandle, r, g, b, p4);

// by hash
Citizen.invokeNative('0x239879FC61C610CC', ptfxHandle, r + 0.0000001, g + 0.0000001, b + 0.0000001, p4);
```

### C#

```csharp
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.*
