brocky Posted October 15, 2015 Share Posted October 15, 2015 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
KariiiM Posted October 15, 2015 Share Posted October 15, 2015 function buyHouse () takePlayerMoney ( source, 100000 ) end addEvent("bought", true) addEventHandler("bought", getRootElement(), buyHouse) 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