HUD
Functions

GM: can Toggle Spikestrip

Called before a player deploys or retracts the spike strips.

Used in: VCMod Main addon.

Server GM:VC_canToggleSpikestrip(Entity ply, Entity ent)

Arguments

1. Entity ply; Player
Player who is doing it.

2. Entity ent; Spike strip
The spike strip entity that is being toggled.

Returns

1. Boolean If it should allow player to toggle it or not.

Example

hook.Add("VC_canToggleSpikestrip", "VC_canToggleSpikestrip", function(ply, ent)
	print("Player :"..ply:Nick().." is deploy or retract spike strips at. Restricting")
	local can = false
	return can
end)
Page modified:
...2018-11-02 09:24:35