The Lab
FIRE native

_ADD_EXPLOSION_WITH_DAMAGE_CAUSER

returns void10 paramsbuild 1207

Creates an explosion of explosionType at the given coordinates and attributes its damage to entity.

Use this instead of ADD_EXPLOSION when kills should be credited to a specific entity.

Signature

C
void _ADD_EXPLOSION_WITH_DAMAGE_CAUSER(Entity entity, int p1, float x, float y, float z, int explosionType, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake); // 0xB7DF150605EEDC9B b1207

Parameters

#NameType
1entityEntity
2p1int
3xfloat
4yfloat
5zfloat
6explosionTypeint
7damageScalefloat
8isAudibleBOOL
9isInvisibleBOOL
10cameraShakefloat

Facts

Facts about _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
Name
_ADD_EXPLOSION_WITH_DAMAGE_CAUSER
Hash
0xB7DF150605EEDC9B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xB7DF150605EEDC9B, -- _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
  PlayerPedId(), -- Entity entity
  0, -- int p1
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0, -- int explosionType
  0.0, -- float damageScale
  false, -- BOOL isAudible
  false, -- BOOL isInvisible
  0.0 -- float cameraShake
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xB7DF150605EEDC9B", // _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
  PlayerPedId(), // Entity entity
  0, // int p1
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int explosionType
  0.0, // float damageScale
  false, // BOOL isAudible
  false, // BOOL isInvisible
  0.0 // float cameraShake
);
C#
Function.Call((Hash)0xB7DF150605EEDC9B, // _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
  API.PlayerPedId(), // Entity entity
  0, // int p1
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0, // int explosionType
  0.0f, // float damageScale
  false, // BOOL isAudible
  false, // BOOL isInvisible
  0.0f // float cameraShake
);
All FIRE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.