Jump to content

Button.


^_^ LOL ^_^

Recommended Posts

Posted

What do you mean with he will do all server.lua ?

You could trigger to the Server if he clicks on a button just like this:

  
    addEventHandler("onClientGUIClick", yourbutton, 
        function() 
            triggerServerEvent("YourEvent", localPlayer) 
            outputChatBox("Test") 
        end) 

Posted

use the following functions :

  
guiCreateButton 
triggerServerEvent 
  

the first one in order to create the gui button and the second to trigger the event from client to server side

Posted

What do you mean with all typed in server.lua ?

Could you be more specific please ?

If you want to trigger an Event just uste triggerServerEvent.

  • Moderators
Posted
@KRZO

i mean if hes press button then hes will do all what are typed in server.lua (serverside) file.

Thanks for help. I will try :D

Please use at least google translate.

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