function starts() outputChatBox("Resource started") setPlayerHudComponentVisible("all", false) showCursor(true) showChat(false) addEventHandler("onClientRender", getResourceRootElement(), drawPanel) end addEventHandler("onClientResourceStart", getResourceRootElement(), starts)