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
- local vehicle = ply:GetVehicle()
- if key == IN_ATTACK then
- if cider.entity.isDoor(vehicle) then
- if cider.player.hasDoorAccess(ply, vehicle) then
- vehicle:Fire("lock", "", 0)
- ply:EmitSound("doors/door_latch3.wav")
- else
- cider.player.notify(ply, "You do not have access to this door!", 1);
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement