RedM Natives

_ADD_EXPLOSION_WITH_DAMAGE_CAUSER

Adds an explosion with entity as damage causer.

Hash0xB7DF150605EEDC9B
Runtime nameAddExplosionWithDamageCauser
NamespaceFIRE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

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);

Parameters

NameTypeDescription
entityEntity—
p1int—
xfloat—
yfloat—
zfloat—
explosionTypeint—
damageScalefloat—
isAudibleBOOL—
isInvisibleBOOL—
cameraShakefloat—

Returns void

Description

alloc8or RDR3 NativeDB

Adds an explosion with entity as damage causer.
explosionType: see ADD_EXPLOSION
_A* - _ADD_D*

VORPCORE RDR3natives

Add explosion with and assign an entity as damage causer.
explosionType: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/README.md

Usage

Lua
AddExplosionWithDamageCauser(entity, p1, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake)

-- always works, by hash
Citizen.InvokeNative(0xB7DF150605EEDC9B, entity, p1, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake)
JavaScript and C#
JavaScript
AddExplosionWithDamageCauser(entity, p1, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake);

// by hash
Citizen.invokeNative('0xB7DF150605EEDC9B', entity, p1, x + 0.0000001, y + 0.0000001, z + 0.0000001, explosionType, damageScale + 0.0000001, isAudible, isInvisible, cameraShake + 0.0000001);
C#
Function.Call((Hash)0xB7DF150605EEDC9B, entity, p1, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake);
  • 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.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.