Jump to content

[Help] GUI Image


ViRuZGamiing

Recommended Posts

Posted

Hi,

This is the first time i'm creating an image

function showLoginlogo () 
        local screenW, screenH = guiGetScreenSize()  
    showLogo = guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen") 
end 
  
addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), showLoginlogo ) 

Why doesn't this work?

I want the picture to fill the screen.

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

You didn't add the image format. Look:

guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen") 

The file format is missing. You should use logoscreen.png (or .jpeg, .gif, anyway, the file format).

Software Engineer & Entrepreneur Running Lustrel and VilarikA • Highly engaged on open source community

Posted
function showLoginlogo () 
    local screenW, screenH = guiGetScreenSize()  
    showLogo = guiCreateStaticImage ( 0, 0, screenW, ScreenH, "images/logoscreen.png") 
end 
  
addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), showLoginlogo ) 

still not visible

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted
local screenW, screenH = guiGetScreenSize() 
showLogo = guiCreateStaticImage(0, 0, screenW, screenH, "images/logoscreen.png", false) 

CiTLh.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...