ADD_EXPLOSION_WITH_USER_VFX
Changes explosionFx (Visual Effect) for specified explosionType
Hash
0x53BA259F3A67A99ERuntime name
AddExplosionWithUserVfxNamespaceFIRE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x36DD3FE58B5E5212Signature
void ADD_EXPLOSION_WITH_USER_VFX(float x, float y, float z, int explosionType, Hash explosionFx, float damageScale, BOOL isAudible, BOOL isInvisible, float cameraShake);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
y | float | — |
z | float | — |
explosionType | int | — |
explosionFx | Hash | — |
damageScale | float | — |
isAudible | BOOL | — |
isInvisible | BOOL | — |
cameraShake | float | — |
Returns void
Description
Changes explosionFx (Visual Effect) for specified explosionType
explosionType: see ADD_EXPLOSION
explosionFx: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/explosion_vfxTags.lua
explosionType: see ADD_EXPLOSION
Change explosionFx (Visual Effect) for specified explosionType
Usage
AddExplosionWithUserVfx(x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)
-- always works, by hash
Citizen.InvokeNative(0x53BA259F3A67A99E, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)JavaScript and C#
AddExplosionWithUserVfx(x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);
// by hash
Citizen.invokeNative('0x53BA259F3A67A99E', x + 0.0000001, y + 0.0000001, z + 0.0000001, explosionType, explosionFx, damageScale + 0.0000001, isAudible, isInvisible, cameraShake + 0.0000001);Function.Call((Hash)0x53BA259F3A67A99E, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - 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
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.