Files
2026-03-15 14:54:49 +03:00

37 lines
864 B
Lua

DarkRP.PLAYER.canAfford = DarkRP.stub{
name = "canAfford",
description = "Whether the player can afford the given amount of money",
parameters = {
{
name = "amount",
description = "The amount of money",
type = "number",
optional = false
}
},
returns = {
{
name = "answer",
description = "Whether the player can afford it",
type = "boolean"
}
},
metatable = DarkRP.PLAYER
}
DarkRP.ENTITY.isMoneyBag = DarkRP.stub{
name = "isMoneyBag",
description = "Whether this entity is a money bag",
parameters = {
},
returns = {
{
name = "answer",
description = "Whether this entity is a money bag.",
type = "boolean"
}
},
metatable = DarkRP.ENTITY
}