Server GM:VC_canDamagePart(Entity ent, String class, Integer object, Entity att, Entity inf)
1. Entity ent; Entity
The unlucky vehicle.
2. String class; Class
The part type.
3. Integer object; Object
The part numnber.
4. Entity att; Attacker
The player/NPC entity which the damage originated from. This argument is optional.
5. Entity inf; Inflictor
Entity which the damage was inflicted with, such as a weapon. This argument is optional.
1. Boolean If it should allow it or not.
hook.Add("VC_canDamagePart", "VC_BulletProofTires", function(ent, class, object, att, inf) if class == "wheel" then return false end end)