Jump to content

Weird GUI Button bug?


GamerDeMTA

Recommended Posts

Is this a bug? When I press in the 'space' which there's no button or GUI Elements in the windows, it's like I've pressed the button, so it does the function when I press the button 'X'. But I press in the window.

function ww( ) 
        wNd = guiCreateWindow(210, 178, 331, 202, "Window", false) 
        guiWindowSetSizable(wNd, false) 
        guiSetVisible(wNd,false) 
  
        X = guiCreateButton(9, 127, 142, 66, "X Button", false, wNd) 
        addEventHandler("onClientGUIClick", X, GUIClick) 
end 
addEventHandler("onClientResourceStart", resourceRoot, ww) 
function GUIClick ( ) 
outputChatBox ( "Is it a bug?", source, 128, 0, 255, true ) 
end 

I show the GUI by hitting a marker but that isn't important, I think. It just outputs "Is it a bug?" even if I touch the window, not the button.

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