Called before a player deploys or retracts the spike strips.
Used in: VCMod Main addon.
Server GM:VC_canToggleSpikestrip(Entity ply, Entity ent)
1. Entity ply; Player
Player who is doing it.
2. Entity ent; Spike strip
The spike strip entity that is being toggled.
1. Boolean If it should allow player to toggle it or not.
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)