fxAddBulletImpact | Multi Theft Auto: Wiki Skip to content

fxAddBulletImpact

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Creates a bullet impact particle effect, consisting of a small smoke cloud and a number of sparks.

Syntax

fxAddBulletImpact ( )

Code Examples

client

This example will create a Bullet Impact Effect on the position of the bullet impact.

addEventHandler("onClientPlayerWeaponFire", root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
if weapon == 0 then return end -- If the player is unarmed, return end.
fxAddBulletImpact(hitX, hitY, hitZ, 0, 0, 0, math.random(1, 2), math.random(2, 5), 1.0)
end)