_ADD_EXPLOSION_WITH_DAMAGE_CAUSER
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | int |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | explosionType | int |
| 7 | damageScale | float |
| 8 | isAudible | BOOL |
| 9 | isInvisible | BOOL |
| 10 | cameraShake | float |
Facts
| 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.
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
)// 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
);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
);Related FIRE natives
- _ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER
- ADD_EXPLOSION_WITH_USER_VFX
- ADD_EXPLOSION
- ADD_OWNED_EXPLOSION
- _IS_EXPLOSION_IN_VOLUME
- GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA
- IS_EXPLOSION_ACTIVE_IN_AREA
- IS_EXPLOSION_IN_ANGLED_AREA
- IS_EXPLOSION_IN_AREA
- IS_EXPLOSION_IN_SPHERE
- _GET_CLOSEST_FIRE_POS_IN_VOLUME
- _IS_ENTITY_BEING_DAMAGED_BY_FIRE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.