RedM Natives

ADD_OWNED_EXPLOSION

Hash0xD84A917A64D4D016
Runtime nameAddOwnedExplosion
NamespaceFIRE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x172AA1B624FA1013

Signature

void ADD_OWNED_EXPLOSION(Ped ped, float x, float y, float z, int explosionType, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake);

Parameters

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
explosionTypeint—
damageScalefloat—
isAudibleBOOL—
isInvisibleBOOL—
cameraShakefloat—

Returns void

Description

explosionType: see ADD_EXPLOSION

Usage

Lua
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#
JavaScript
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);
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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