# GRAPHICS::START_PARTICLE_FX_LOOPED_AT_COORD

- **Hash:** `0xBA32867E86125D3A`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `StartParticleFxLoopedAtCoord`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/START_PARTICLE_FX_LOOPED_AT_COORD

## Signature

```c
int START_PARTICLE_FX_LOOPED_AT_COORD(const char* effectName, float x, float y, float z, float xRot, float yRot, float zRot, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis, BOOL p11);
```

## Parameters

- `effectName` (`const char*`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `xRot` (`float`)
- `yRot` (`float`)
- `zRot` (`float`)
- `scale` (`float`)
- `xAxis` (`BOOL`)
- `yAxis` (`BOOL`)
- `zAxis` (`BOOL`)
- `p11` (`BOOL`)

## Returns

`int`

## Description

https://github.com/femga/rdr3_discoveries/blob/master/graphics/ptfx/ptfx_assets_looped.lua

## Usage

### Lua

```lua
local retval = StartParticleFxLoopedAtCoord(effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11)

-- always available, by hash
local retval = Citizen.InvokeNative(0xBA32867E86125D3A, effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = StartParticleFxLoopedAtCoord(effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11);

// by hash
const retval = Citizen.invokeNative('0xBA32867E86125D3A', effectName, x + 0.0000001, y + 0.0000001, z + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, scale + 0.0000001, xAxis, yAxis, zAxis, p11, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xBA32867E86125D3A, effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11);
```

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