fxAddDebris | Multi Theft Auto: Wiki Skip to content

fxAddDebris

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 debris particle effect (e.g. bits that fly off a car when ramming a wall).

Syntax

fxAddDebris ( )

Code Examples

client

This example will create a Debris Effect next to you when typing/debrisin the Chatbox.

addCommandHandler("debris", function()
local x, y, z = getElementPosition(localPlayer)
local randomColor, randomAmount = math.random(0, 255), math.random(4, 8)
fxAddDebris(x, y, z, randomColor, randomColor, randomColor, 255, 1.0, randomAmount)
end)