ADD_OWNED_EXPLOSION
Hash
0xD84A917A64D4D016Runtime name
AddOwnedExplosionNamespaceFIRE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x172AA1B624FA1013Signature
void ADD_OWNED_EXPLOSION(Ped ped, float x, float y, float z, int explosionType, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
x | float | — |
y | float | — |
z | float | — |
explosionType | int | — |
damageScale | float | — |
isAudible | BOOL | — |
isInvisible | BOOL | — |
cameraShake | float | — |
Returns void
Description
explosionType: see ADD_EXPLOSION
Usage
AddOwnedExplosion(ped, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake)
-- always works, by hash
Citizen.InvokeNative(0xD84A917A64D4D016, ped, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake)JavaScript and C#
AddOwnedExplosion(ped, x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake);
// by hash
Citizen.invokeNative('0xD84A917A64D4D016', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, explosionType, damageScale + 0.0000001, isAudible, isInvisible, cameraShake + 0.0000001);Function.Call((Hash)0xD84A917A64D4D016, ped, 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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eExplosionTag 37 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.