edit: thanks TAPL
try this:
function Nemesisbymanawydan6 ( thePlayer)
local AclNome6 = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ("user."..AclNome6, aclGetGroup ( "Admin" ) ) then
nemesi6 = exports [ "slothBot" ]:spawnBot ( 2598.2099609375, 1807.3173828125, 11.398876190186, 90, math.random ( 300, 303 ), 0, 0, Nemesis6, 0, "hunting", true )
setElementModel ( nemesi6, 162 )
outputChatBox ("ProjectZ has been spawned! Location: Pilgrim! One of the strongest Boss!",getRootElement(), 255, 0, 0, true )
BlipNemesis6 = createBlipAttachedTo ( nemesi6, 23 )
attachElements ( baz, nemesi6, 0.2, 0.1, 0.5, 0, 90, 0 )
setElementData(nemesi6, "nemesis6",true)
triggerClientEvent(root, "nsound2", thePlayer)
if nemesi6 then
exports.extra_health:setElementExtraHealth ( nemesi6, 10000 )
end
end
end
addCommandHandler("boss6", Nemesisbymanawydan6)