jimathy / jim-mechanicguide

Online Guide/Documentation of jim-mechanic
17 stars 8 forks source link

Brakes already installed notify is wrong #17

Open Martinator9001 opened 1 year ago

Martinator9001 commented 1 year ago

If you're installing already installed brakes, the notify shows they're a tier below than what they actually are. The fix is changing: performance.lua:81 if GetVehicleMod(vehicle, 12) == level then triggerNotify(nil, QBCore.Shared.Items["brakes"..level].label.." "..Loc[Config.Lan]["common"].already, "error") else to if GetVehicleMod(vehicle, 12) == level then triggerNotify(nil, QBCore.Shared.Items["brakes"..level+1].label.." "..Loc[Config.Lan]["common"].already, "error") else