addEventHandler(\"onPlayerLogin\", getRootElement(), function()setElementData(source, \"loggedIn\", 1)end)addEventHandler(\"onPlayerLogout\", getRootElement(), function()setElementData(source, \"loggedIn\", 0)end)