HUD
Functions

GM: RM can Use

Called when a person attempts to use the repair man NPC.

Used in: VCMod Main addon.

Server GM:VC_RM_canUse(Entity NPC, Entity ply)

Arguments

1. Entity NPC; Repair Man
The repair man NPC.

2. Entity ply; Player
Player who is attempting to use it.

Returns

1. Boolean If it should allow player use it or not.

Example

hook.Add("VC_RM_canUse", "VC_KeepFreeAwayFromRepairMen", function(NPC, ply)
	local name = ply:Nick()
	if name == "freemmaann" then
		print("freemmaann has just attempted to use a repair man, not allowing it.")
		local can = false
		return can
	end
end)
Page modified:
...2018-11-02 09:24:40