HUD
Functions

GM: can Pickup Spike Strip

Called when a player attemps to pick up spike strips.

Used in: VCMod Main addon.

Server GM:VC_canPickupSpikeStrip(Entity ply, Entity ent)

Arguments

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

2. Entity ent; Entity
Spike strip that is about to be picked up.

Returns

1. Boolean If it should allow player to pick it up or not.

Example

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