42.18 support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user