Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("KeyPress", "VehicleBinds", function(ply, key)
- if ply:InVehicle() then
- if key == IN_JUMP then
- if ( ValidEntity(trace.Entity) and ( cider.entity.isDoor(trace.Entity) ) ) then
- if ( cider.player.hasDoorAccess(self.Owner, trace.Entity) ) then
- trace.Entity:Fire("lock", "", 0);
- self.Owner:EmitSound("doors/door_latch3.wav");
- else
- cider.player.notify(self.Owner, "You do not have access to this door!", 1);
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement