Functions/Player/Shared/canAfford

From DarkRP
Function
Function name Player:canAfford(number amount)
Description:
Whether the player can afford the given amount of money
Returns: boolean answer
Part of Library: Player
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Shared/canAfford]Player:canAfford[/url][/b]

Function parameters[edit]

  1. amount (number)
  2. The amount of money


Function return values[edit]

  1. answer (boolean)
  2. Whether the player can afford it