Functions/Player/Shared/canAfford

From Official DarkRP Wiki
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Shared/canAfford]Player:canAfford[/url][/b]

Function parameters

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


Function return values

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