function boss ( )
if ( isElement ( slothbot ) ) then
destroyElement ( slothbot )
end
if ( isElement ( myBlip ) ) then
destroyElement ( myBlip )
end
slothBot = exports [ "slothBot" ]:spawnBot ( x + 15, y, z, 90, 287, 0, 0, Nemesis, 22, "hunting", true )
exports.extra_health:setElementExtraHealth ( slothBot, 1000 )
outputChatBox ( "Zombie Boss has been generated!!, run!", root, 255, 0, 0, true )
end
setTimer ( boss, 300000, 0 )
addEventHandler ( "onResourceStart", resourceRoot, boss )
function SpawnOnPlayer()
local randomPlayer = getRandomPlayer ()
local x, y, z = getElementPosition ( randomPlayer )
end
addEventHandler ( "onResourceStart", getRootElement(), SpawnOnPlayer )