fxAddTyreBurst | Multi Theft Auto: Wiki Skip to content

fxAddTyreBurst

Client-side
Server-side
Shared

Creates a tyre burst particle effect (a small white smoke puff).

OOP Syntax Help! I don't understand this!

  • Method:Effect.addTyreBurst(...)

Syntax

bool fxAddTyreBurst ( ​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 of the effect.
  • dirY: The direction Y coordinate of the effect.
  • dirZ: The direction Z coordinate of the effect.

Returns

  • bool: result

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

Code Examples

client

This example will create a Tyre Burst Effect next to you when typing /tyreburst in the Chatbox.

addCommandHandler("tyreburst", function()
local x, y, z = getElementPosition(localPlayer)
local gz = getGroundPosition(x, y, z)
fxAddTyreBurst(x, y, gz, 0, 0, 0)
end)