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
|
||||
|
||||
|
||||
+2
-2
@@ -6,5 +6,5 @@ author=Riggs0
|
||||
category=vehicle
|
||||
icon=../common/media/textures/tow_bar_icon.png
|
||||
url=https://hudsonriggs.systems
|
||||
modversion=1.0.0
|
||||
versionMin=42.13.0
|
||||
modversion=1.0.1
|
||||
versionMin=42.13.0
|
||||
|
||||
Reference in New Issue
Block a user