setEffectSpeed | Multi Theft Auto: Wiki Skip to content

setEffectSpeed

Client-side
Server-side
Shared

Pair: getEffectSpeed

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 sets the speed of a specified effect.

Syntax

setEffectSpeed ( )

Code Examples

client

This example adds commandsesthat creates effect of a smoke at player's position and sets its speed to 5.

addCommandHandler("ses",
function (cmd)
local x, y, z = getElementPosition(localPlayer)
local effect = createEffect("smoke30lit", x, y, z)
setEffectSpeed(effect, 5)
end)