Kasem Posted February 13, 2014 Share Posted February 13, 2014 (edited) thx i fix it Edited February 13, 2014 by Guest Link to comment
Moderators Citizen Posted February 13, 2014 Moderators Share Posted February 13, 2014 Check the wiki examples: https://wiki.multitheftauto.com/wiki/OnClientGUIClick It does exactly what you want to do. Note: Use a correct title for problems you have. Also, this question didn't require a good scripter as you thought it would. Regards, Citizen Link to comment
Kasem Posted February 13, 2014 Author Share Posted February 13, 2014 sorry i don't undrestand can u help me Link to comment
Moderators Citizen Posted February 13, 2014 Moderators Share Posted February 13, 2014 sorry i don't undrestand can u help me Did you read the example ?? Here is an even more simple example: function kickButton( button ) if button == "left" then --if the player clicked with the left click mouse outputChatBox ( "You clicked the kick button !" ) end end --Creating the button: myButton = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Kick !", true ) --Adding the click event on myButton to call the kickButton function when clicked: addEventHandler("onClientGUIClick", myButton, kickButton, false) Everything you need is here, I can't do it more simple. Regards, Citizen Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now