Jump to content

fix my GUI script! please!


Recommended Posts

ScreenLocked = guiCreateWindow(22,175,141,267,"SmartEX C45",false) 
guiSetAlpha(ScreenLocked,1) 
guiWindowSetMovable(ScreenLocked,false) 
guiWindowSetSizable(ScreenLocked,false) 
ImageLocked = guiCreateStaticImage(9,30,123,228,"images/mtalogo.png",false,ScreenLocked) 
guiSetAlpha(ImageLocked,1) 
ScreenLocked_UnlockButton = guiCreateButton(16,234,107,15,"Click to unlock",false,ScreenLocked) 
guiSetAlpha(ScreenLocked_UnlockButton,1)  
guiSetVisible(ScreenLocked, false) 
bindKey ("f1", "down", showHide) 
bindKey ("y", "down", showHide) 
function showHide() 
    if guiGetVisible(ScreenLocked, true) 
        guiSetVisible(ScreenLocked, false) 
    else 
        guiSetVisible(ScreenLocked, true) 
    end 
end 
addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockButton, funScreenLocked_UnlockButton, false ) 
function funScreenLocked_UnlockButton() 
    guiSetVisible(ScreenLocked, false) 
end 

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