i have test the script from this https://forum.multitheftauto.com/viewtopic.php?f ... 5&start=15
and its work
and i modif the simple script and work like a charm
function gg(player,k,ks)
local Team = createTeam ( "₧ÑΣαε" )
local ss1 = getElementData(player,"bot1")
local ss2 = getElementData(player,"bot2")
if(ss1 or ss2) and isElement(ss1) or isElement(ss2) then return end
local x,y,z = getElementPosition(player)
local aq = {10, 15, 20, 25, 30, 35, 40}
local aa = aq [math.random(1,#aq)]
local ab = aq [math.random(1,#aq)]
local ae = aq [math.random(1,#aq)]
local af = aq [math.random(1,#aq)]
local aj = aq [math.random(1,#aq)]
local bot1 = exports [ "slothbot" ]:spawnBot (x+aj,y+aa,z,360,184,0,0,Team ,1,"hunting", "following")
local bot2 = exports [ "slothbot" ]:spawnBot (x+af,y+ab,z,190,188,0,0,Team ,2,"hunting", "following")
triggerClientEvent(getRootElement(), "startForward", bot1, bot1)
triggerClientEvent(getRootElement(), "startForward", bot2, bot2)
setElementData(player,"bot1",bot1)
setElementData(player,"bot2",bot2)
setTimer ( function ( b, b1 )
local Team = getTeamFromName ( "₧ÑΣαε" )
exports [ "slothbot" ]:setBotTeam ( b, Team )
exports [ "slothbot" ]:setBotTeam ( b1, Team )
end
,500, 1, bot1, bot2
)
end
addCommandHandler ( "gg", gg )