Gente como eu privaria isso para 1 grupo só?
addCommandHandler("fogo",
function(lp)
local x,y,z=getElementPosition(lp)
local Rocket=createObject(3790,x,y,z-1.5,0,90,0)
setTimer(function()
moveObject(Rocket,500, x+math.random(0,5), y+math.random(0,5), z+math.random(20,50), 0, 0, math.random(0,200))
triggerClientEvent(root, "startSilvesterRocket", root, x, y, z)
setTimer(function()
local xr,yr,zr=getElementPosition(Rocket)
createExplosion(xr,yr,zr,9,lp)
createExplosion(xr,yr,zr,4,lp)
destroyElement(Rocket)
end,500,1)
end,2000,1)
end)
MaxRocketPack = 3
RocketPack = 0