addCommandHandler("hidemyblip",
function(player)
local account = getPlayerAccount(player)
if not isGuestAccount(account) and isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Admin")) then
for index, element in ipairs(getAttachedElements(player)) do
if getElementType(element) == "blip" then
destroyElement(element)
end
end
outputChatBox("You are now invisible on the radar", player)
end
end)