Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PlayerBindPress", "bindlolwtf", function(ply, bind, pressed)
- if not IsValid(ply) then return end
- if bind == "invnext" and pressed and !input.IsMouseDown(MOUSE_LEFT) then
- if (!ply:InVehicle()) then
- WeaponSelection:Call()
- WeaponSelection:NextWeapon()
- end
- return true
- elseif bind == "invprev" and pressed and !input.IsMouseDown(MOUSE_LEFT) then
- if (!ply:InVehicle()) then
- WeaponSelection:Call()
- WeaponSelection:PrevWeapon()
- end
- return true
- elseif bind == "+attack" then
- if (WeaponSelection:ShouldDraw()) then
- WeaponSelection:Call()
- WeaponSelection:SelectWeapon()
- return true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement