Jump to content

triggerServerEvent How To Pass Information


WalkinG

Recommended Posts

Sorry for my English

I want the Server Pass information pro client side, more or less it

Server

function money (source) 
valor = getPlayerMoney (source) 
  
end 
addEvent ("Pass.Valor",true) 
addEventHandler ("Pass.Valor",root,money) 

Client

function atualiza () 
triggerServerEvent (localPlayer,"Pass.Valor",localPlayer,valor) 
outputChatBox (valor) 
         
end  
addCommandHandler ("show",atualiza) 

Thank you very much in advance

Link to comment

Try these. Contact me on skype if you need more help with scripts, i'm everyday available. Skype: juhis122

Server

function money (thePlayer) 
valor = getPlayerMoney (thePlayer) 
triggerClientEvent (thePlayer,"Pass.Valor",thePlayer,valor) 
  
end 
addCommandHandler ("show",money) 

Client

function atualiza (valor) 
outputChatBox (valor) 
  
end 
  
addEvent ("Pass.Valor",true) 
addEventHandler ("Pass.Valor",localPlayer,atualiza) 

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