42.18 support

This commit is contained in:
2026-06-01 18:21:38 -04:00
parent 4964927944
commit 8c0afd857b
45 changed files with 11689 additions and 1492 deletions
+2 -2
View File
@@ -160,7 +160,8 @@ function TowBarMod.UI.showDevSingleTowbarMenu(playerObj, vehicle)
end
function TowBarMod.UI.addDevOptionsToMenu(playerObj, vehicle)
if not TowBarMod.Config.devMode then return end
local devModeEnabled = (TowBarMod.Config and TowBarMod.Config.devMode) or getDebug()
if not devModeEnabled then return end
if not vehicle then return end
local menu = getPlayerRadialMenu(playerObj:getPlayerNum())
@@ -225,4 +226,3 @@ function ISVehicleMenu.showRadialMenu(playerObj)
TowBarMod.UI.addDevOptionsToMenu(playerObj, vehicle)
end