# FIRE::ADD_EXPLOSION_WITH_USER_VFX

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

## Signature

```c
void ADD_EXPLOSION_WITH_USER_VFX(float x, float y, float z, int explosionType, Hash explosionFx, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake);
```

## Parameters

- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `explosionType` (`int`)
- `explosionFx` (`Hash`)
- `damageScale` (`float`)
- `isAudible` (`BOOL`)
- `isInvisible` (`BOOL`)
- `cameraShake` (`float`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Changes explosionFx (Visual Effect) for specified explosionType
explosionType: see ADD_EXPLOSION
explosionFx: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/explosion_vfxTags.lua

*Source: VORPCORE RDR3natives*

explosionType: see ADD_EXPLOSION
Change explosionFx (Visual Effect) for specified explosionType

## Usage

### Lua

```lua
AddExplosionWithUserVfx(x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)

-- always available, by hash
Citizen.InvokeNative(0x53BA259F3A67A99E, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)
```

### JavaScript

```js
AddExplosionWithUserVfx(x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);

// by hash
Citizen.invokeNative('0x53BA259F3A67A99E', x + 0.0000001, y + 0.0000001, z + 0.0000001, explosionType, explosionFx, damageScale + 0.0000001, isAudible, isInvisible, cameraShake + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x53BA259F3A67A99E, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- 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.

## Related enums

- [eExplosionTag](https://natives.borderlinerp.com/enums/eExplosionTag.md) — 37 values

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
