You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use a custom gearratio given in de config, it gives this error. You can fix it by replacing the following code on line 173.
Old code:
if Config.vehicles[hash] ~= nil then
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
ratio = Config.vehicles[hash][numgears][selectedgear] * (1/0.9)
else
end
end
else
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
ratio = Config.gears[numgears][selectedgear] * (1/0.9)
else
end
end
end
Replacement:
<!--StartFragment-->
if Config.vehicles[hash] ~= nil then
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
if Config.vehicles[hash][numgears] ~= nil then
ratio = Config.vehicles[hash][numgears][selectedgear] * (1/0.9)
else
ratio = Config.gears[numgears][selectedgear] * (1/0.9)
end
end
end
else
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
ratio = Config.gears[numgears][selectedgear] * (1/0.9)
end
end
end
The text was updated successfully, but these errors were encountered:
When you use a custom gearratio given in de config, it gives this error.
You can fix it by replacing the following code line 173.
Old code:
if Config.vehicles[hash] ~= nil then if selectedgear ~= 0 and selectedgear
~= nil then if numgears ~= nil and selectedgear ~= nil then ratio =
Config.vehicles[hash][numgears][selectedgear] * (1/0.9) else
end end else if selectedgear ~= 0 and selectedgear ~= nil then if numgears ~= nil and selectedgear ~= nil then ratio = Config.gears[numgears][selectedgear] * (1/0.9) else end end end<!--EndFragment-->
Replacement:
<!--StartFragment--> if Config.vehicles[hash] ~= nil then
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
if Config.vehicles[hash][numgears] ~= nil then
ratio = Config.vehicles[hash][numgears][selectedgear] * (1/0.9)
else
ratio = Config.gears[numgears][selectedgear] * (1/0.9)
end
end
end
else
if selectedgear ~= 0 and selectedgear ~= nil then
if numgears ~= nil and selectedgear ~= nil then
ratio = Config.gears[numgears][selectedgear] * (1/0.9)
end
end
end<!--EndFragment-->
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASIWDPGDMHEIHJPWH4ECYSLTQIJ4VANCNFSM45ZHFU2Q>
.
When you use a custom gearratio given in de config, it gives this error. You can fix it by replacing the following code on line 173.
Old code:
Replacement:
The text was updated successfully, but these errors were encountered: