{"hash":"0x34AE85C7CA4857AA","ns":"FIRE","name":"_ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER","slug":"_ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER","official":false,"named":true,"luaName":"AddExplosionWithUserVfxAndDamageCauser","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"entity","type":"Entity"},{"name":"p1","type":"BOOL"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"explosionType","type":"int"},{"name":"explosionFx","type":"Hash"},{"name":"damageScale","type":"float"},{"name":"isAudible","type":"BOOL"},{"name":"isInvisible","type":"BOOL"},{"name":"cameraShake","type":"float"}],"summary":"Adds an explosion with vfx and entity as damage causer.","descriptions":[{"source":"alloc8or","format":"text","body":"Adds an explosion with vfx and entity as damage causer.\nexplosionFx: see ADD_EXPLOSION_WITH_USER_VFX\n_A* - _ADD_D*"},{"source":"vorp","format":"text","body":"Add explosion with vfx and assign an entity as damage causer.\nexplosionType: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/README.md\nexplosionFx: https://github.com/femga/rdr3_discoveries/blob/master/graphics/explosions/explosion_vfxTags.lua"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/FIRE/_ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER","markdownUrl":"https://natives.borderlinerp.com/natives/FIRE/_ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER.md","snippets":{"lua":"AddExplosionWithUserVfxAndDamageCauser(entity, p1, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)","luaInvoke":"Citizen.InvokeNative(0x34AE85C7CA4857AA, entity, p1, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake)","js":"AddExplosionWithUserVfxAndDamageCauser(entity, p1, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);","jsInvoke":"Citizen.invokeNative('0x34AE85C7CA4857AA', entity, p1, x + 0.0000001, y + 0.0000001, z + 0.0000001, explosionType, explosionFx, damageScale + 0.0000001, isAudible, isInvisible, cameraShake + 0.0000001);","csharp":"Function.Call((Hash)0x34AE85C7CA4857AA, entity, p1, x, y, z, explosionType, explosionFx, damageScale, isAudible, isInvisible, cameraShake);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}