DarkRP.Player.CanAfford
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of functions. |
---|
Function | |
Function name | Player:CanAfford(number money) |
Description: | |
Returns true or false depending on if the player can afford the amount provided. | |
Returns: | boolean |
Part of Library: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.CanAfford]Player:CanAfford[/url][/b] |
Examples[edit]
Description | Checks if the player can afford a pie. |
---|---|
Used on | |
Code | function GivePieSwep( ply )
if (ply:CanAfford(100) == true) then
ply:Give("pie_swep")
end
end
|
Output | N/A |