HUD
Functions

GM: can Place Spike Strip

Called before a player places spike strips.

Used in: VCMod Main addon.

Server GM:VC_canPlaceSpikeStrip(Entity ply, Vector pos)

Arguments

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

2. Vector pos; Position
Position where the spikes would be placed at.

Returns

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

Example

hook.Add("VC_canPlaceSpikeStrip", "VC_canPlaceSpikeStrip", function(ply, pos)
	print("Player :"..ply:Nick().." is attempting to spawn spike strips at: "..pos..".")
	local can = false
	return can
end)
Page modified:
...2018-11-02 09:24:34