fxAddWaterSplash | Multi Theft Auto: Wiki Skip to content

fxAddWaterSplash

Client-side
Server-side
Shared

This function creates a water splash particle effect.

OOP Syntax Help! I don't understand this!

  • Method:Effect.addWaterSplash(...)

Syntax

bool fxAddWaterSplash ( ​float posX, ​float posY, ​float posZ )
Required Arguments
  • posX: A float representing the X position of the splash.
  • posY: A float representing the Y position of the splash.
  • posZ: A float representing the Z position of the splash.

Returns

  • bool: result

Returns a true if the operation was successful, false otherwise.

Code Examples

client

This example will create a Water Splash at the position of the bullet impact whenever you shoot.

addEventHandler("onClientPlayerWeaponFire", root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
if weapon == 0 then return end -- If the player is unarmed, return end.
fxAddWaterSplash(hitX, hitY, hitZ)
end)