Jump to content

TriggerClientEvent


dontdo

Recommended Posts

Posted
function btns() 
         
            local acc = guiGetText (email_txt) 
            local pw = guiGetText (password_txt) 
             
            if (source == Login_btn) then 
             
            end  
        end 
        addEventHandler ( "onClientGUIClick", root, btns ) 

how to use server side function after if condtion ?

Posted
u mean like this?
triggerServerEvent("eventname", getLocalPlayer(), eventname) 

No, i want to connect it with the server.lua file

Posted

triggerServerEvent function will do the job and put addEvent function in the server side to register the event, then add your event handler.

Posted
triggerServerEvent function will do the job and put addEvent function in the server side to register the event, then add your event handler.

Thanks

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