require("global"); properties = { permissions = 0, parameters = "sss", description = [[ Sets player or 's maximum hp to and heals them to full. !setmaxhp | !setmaxhp ]], } function onTrigger(player, argc, hp, name, lastName) local sender = "[setmaxhp] "; if name then if lastName then player = GetWorldManager():GetPCInWorld(name.." "..lastName) or nil; else player = GetWorldManager():GetPCInWorld(name) or nil; end; end; if player then hp = tonumber(hp) or 1; location = INVENTORY_CURRENCY; player:hpstuff(hp); else print(sender.."unable to add experience, ensure player name is valid."); end; end;