Initial commit
This commit is contained in:
36
gamemodes/darkrp/gamemode/modules/money/sh_interface.lua
Normal file
36
gamemodes/darkrp/gamemode/modules/money/sh_interface.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user