Jump to content

[HELP] takePlayerMoney


brocky

Recommended Posts

I have a problem with this code, and its that i made a function of button in client side and attached the event to this code which is server sided.

and it doesn't takes the player money, and I think the parameters are correct.

  
function buyHouse ( player ) 
takePlayerMoney ( player, 100000 ) 
  end  
addEvent("bought", true) 
addEventHandler("bought", getRootElement(), buyHouse) 
  

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