Hello, guys. It is possible to create effect and attach it to player/ped?
This code doesn't works, may be I doing something wrong?
addCommandHandler('eff1',
function()
local eff
local x, y, z = getElementPosition(localPlayer)
eff = createEffect('fire', x, y, z, 0.0, 0.0, 0.0)
setElementInterior(eff, getElementInterior(localPlayer))
attachElements(eff, localPlayer)
end)
Please help