Sasu Posted April 20, 2013 Posted April 20, 2013 Why this script set text the local player money? local player = getPlayerFromName(playerName) local playerMoney = getPlayerMoney(player) guiSetText(dineroLabel, "Dinero: $"..playerMoney)
MIKI785 Posted April 20, 2013 Posted April 20, 2013 You mean that you want to retrieve the money of another player and show it in GUI? That can't be done using getPlayerMoney. This function can't get money of remote player if client sided. So make server side script which will save player's money into element data and this can be retrieved on client side.
Sasu Posted April 20, 2013 Author Posted April 20, 2013 You mean that you want to retrieve the money of another player and show it in GUI? That can't be done using getPlayerMoney. This function can't get money of remote player if client sided. So make server side script which will save player's money into element data and this can be retrieved on client side. Ok. I will try. Thank you very much.
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