fxAddTankFire
Client-side
Server-side
Shared
This function creates a tank firing particle effect.
OOP Syntax Help! I don't understand this!
- Method:Effect.addTankFire(...)
Syntax
bool fxAddTankFire ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )Required Arguments
- posX: The world X coordinate where the effect originates.
- posY: The world Y coordinate where the effect originates.
- posZ: The world Z coordinate where the effect originates.
- dirX: The direction X coordinate where the tank fire is directed to.
- dirY: The direction Y coordinate where the tank fire is directed to.
- dirZ: The direction Z coordinate where the tank fire is directed to.
Returns
- bool: result
Returns a true if the operation was successful, false otherwise.
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)
