Jump to content

Player Money


Sasu

Recommended Posts

Posted

Why this script set text the local player money?

local player = getPlayerFromName(playerName) 
local playerMoney = getPlayerMoney(player) 
guiSetText(dineroLabel, "Dinero: $"..playerMoney) 

Posted

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.

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

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