function hud()
setPlayerHudComponentVisible("all",false)
setPlayerHudComponentVisible("radar", false)
setPlayerHudComponentVisible("crosshair",true)
setPlayerHudComponentVisible("radar", (getElementDimension(localPlayer) == 0) and (getElementInterior(localPlayer) == 0) and getElementData(localPlayer, "player:logged") and not (getElementData(localPlayer, "hudoff") ~= false) and not (getElementData(localPlayer, "notshowhud") ~= false) and not isBigMapShowing())
end