fxAddTankFire
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.
This function creates a tank firing particle effect.
Syntax
fxAddTankFire ( )Code Examples
client
This example will create a Tank Fire Effect at your weapon's muzzle position
addEventHandler("onClientPlayerWeaponFire", root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if weapon == 0 then return end -- If the player is unarmed, return end. local mX, mY, mZ = getPedWeaponMuzzlePosition(localPlayer) fxAddTankFire(mX, mY, mZ, 0, 90, 0)end)