Initial commit
This commit is contained in:
2
gamemodes/darkrp/gamemode/modules/medic/sh_init.lua
Normal file
2
gamemodes/darkrp/gamemode/modules/medic/sh_init.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
local plyMeta = FindMetaTable("Player")
|
||||
plyMeta.isMedic = fn.Compose{fn.Curry(fn.GetValue, 2)("medic"), plyMeta.getJobTable}
|
||||
14
gamemodes/darkrp/gamemode/modules/medic/sh_interface.lua
Normal file
14
gamemodes/darkrp/gamemode/modules/medic/sh_interface.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
DarkRP.PLAYER.isMedic = DarkRP.stub{
|
||||
name = "isMedic",
|
||||
description = "Whether this player is a medic.",
|
||||
parameters = {
|
||||
},
|
||||
returns = {
|
||||
{
|
||||
name = "answer",
|
||||
description = "Whether this player is a medic.",
|
||||
type = "boolean"
|
||||
}
|
||||
},
|
||||
metatable = DarkRP.PLAYER
|
||||
}
|
||||
Reference in New Issue
Block a user