Jump to content

how to let all resolutions / como deixar para todas resoluçõ


Tommy-Br

Recommended Posts

function showClientImage() 
   guiCreateStaticImage( 311, 558, 400, 30, "img", false ) 
   guiCreateStaticImage( 311, 590, 400, 30, "img", false ) 
   guiCreateStaticImage( 311, 622, 400, 30, "img", false ) 
   guiCreateStaticImage( 311, 654, 400, 30, "img", false ) 
    guiCreateStaticImage( 311, 686, 400, 30, "img", false ) 
    guiCreateStaticImage( 311, 718, 400, 30, "img", false ) 
end 
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) 
  

Link to comment
  • 3 weeks later...

I hope that's what you need

sW,sH = guiGetScreenSize() 
rW,rH = 1280,1024 -- Put your screen resolution here, 1280 1024 was just an example based on my screen 
function showClientImage() 
   guiCreateStaticImage( sW*(311/rW), sH*(558/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
   guiCreateStaticImage( sW*(311/rW), sH*(590/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
   guiCreateStaticImage( sW*(311/rW), sH*(622/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
   guiCreateStaticImage( sW*(311/rW), sH*(654/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
    guiCreateStaticImage( sW*(311/rW), sH*(686/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
    guiCreateStaticImage( sW*(311/rW), sH*(718/rH), sW*(400/rW), sH*(30/rH), "img", false ) 
end 
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) 

P.S: It's not the right section where to post your problems, Try Scripting section or Spanish scripting section

Link to comment

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...