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
- vehicle:Fire("lock", "", 0)
- ply:EmitSound("doors/door_latch3.wav");
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement