blackLoginScreen = true -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. removeBlackScreenTime = 4 -- The time it takes for the black screen to dissapear - If you choose to display the black screen. [IN SECONDS] local localPlayer = getLocalPlayer() function imageFunc() image = guiCreateStaticImage(0,0,1440,900,"files/img.png",false) sound = playSound("files/grito.mp3") guiSetProperty(image,"Disabled","true") setTimer ( imageOff, 2300, 1 ) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), imageFunc) function imageOff () guiSetVisible (image, false ) if isElement(sound) then destroyElement(sound) end end