GetPlayerMoney
Jump to navigation
Jump to search
Returns the money level of a player
Syntax
getPlayerMoney ( player )
Required Arguments
- Player: Tells the function to give money to a player
Example
addEventHandler ( "onPlayerConsole", root, "onConsole" ) function onConsole ( message ) if gettok(message, 1, 32) == "!checkcash" then --when the player types !checkcash in the console local playermoney = getPlayerMoney ( source ) --set playermoney varible to player's current cash outputChatBox ( "Your cash: ".. playermoney ) --display their current cash in the chatbox end end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState