This commit is contained in:
MrNewb committed 2025-02-20 15:10:42 -05:00
1 parent a8dc8efb00
commit 2a73e8eafa
5 files changed
+12 -13

No files matched your search

+2 -4
View File
@@ -41,12 +41,10 @@ local function QBToOxMenu(id, menu)
return oxMenu
end
OpenMenu = function(id, data, useQBinput)
if useQBinput then
if useQBinput then
data = QBToOxMenu(id, data)
end
end
lib.registerContext(data)
lib.showContext(id)
return data
+6 -6
View File
@@ -1,5 +1,5 @@
if GetResourceState('qb-menu') ~= 'started' or (BridgeClientConfig.MenuSystem ~= "qb" and BridgeClientConfig.MenuSystem ~= "auto") then return end
print("Loading QB Menu")
--print("Loading QB Menu")
--- Converts an Ox menu to a QB menu.
---@param id string The menu ID.
---@param menu table The Ox menu data.
@@ -17,24 +17,24 @@ function OxToQBMenu(id, menu)
txt = v.description,
icon = v.icon,
}
if v.onSelect then
button.params = {
event = "community_bridge:client:MenuCallback",
event = "community_bridge:client:MenuCallback",
args = {id = id, selected = i, args = v.args, onSelect = v.onSelect},
}
end
table.insert(qbMenu, button)
end
return qbMenu
end
OpenMenu = function(id, data, useQBinput)
if not useQBinput then
if not useQBinput then
data = OxToQBMenu(id, data)
end
end
exports['qb-menu']:openMenu(data)
return data
end
+2 -1
View File
@@ -23,7 +23,8 @@ function Version.VersionChecker(repoPath)
local latest = response.tag_name:match('%d+%.%d+%.%d+')
if not latest then return Prints.Error(failure) end
if latest == version then return print(('^2 %s is on the latest version.^0'):format(resource)) end
--if latest == version then return print(('^2 %s is on the latest version.^0'):format(resource)) end
if latest == version then return end
local currentVersion, latestVersion = version:gsub('%D', ''), latest:gsub('%D', '')
if currentVersion < latestVersion then