ADD_EXPLOSION
Creates an explosion of explosionType at the given coordinates with the given damage scale, audibility, visibility and camera shake.
Signature
void ADD_EXPLOSION(float x, float y, float z, int explosionType, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake); // 0x7D6F58F69DA92530 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | explosionType | int |
| 5 | damageScale | float |
| 6 | isAudible | BOOL |
| 7 | isInvisible | BOOL |
| 8 | cameraShake | float |
Facts
| Name | ADD_EXPLOSION |
|---|---|
| Hash | 0x7D6F58F69DA92530 |
| 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(0x7D6F58F69DA92530, -- ADD_EXPLOSION
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("0x7D6F58F69DA92530", // ADD_EXPLOSION
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)0x7D6F58F69DA92530, // ADD_EXPLOSION
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
- ADD_OWNED_EXPLOSION
- _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
- _ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER
- _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
- _0x24DB6B9F2B719043
- _0x41B87A6495EE13DD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.