mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Better support for RedM's RSG Core
Nothing public uses this yet, but its very similar to QBCore which makes it very for me to support Nothing special to note, just improves the integration for future ventures into RedM
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function parseVersion(version)
|
||||
local function parseVersion(version)
|
||||
local parts = {}
|
||||
for num in version:gmatch("%d+") do
|
||||
table.insert(parts, tonumber(num))
|
||||
@@ -6,7 +6,7 @@ function parseVersion(version)
|
||||
return parts
|
||||
end
|
||||
|
||||
function compareVersions(current, newest)
|
||||
local function compareVersions(current, newest)
|
||||
local currentParts = parseVersion(current)
|
||||
local newestParts = parseVersion(newest)
|
||||
for i = 1, math.max(#currentParts, #newestParts) do
|
||||
|
||||
Reference in New Issue
Block a user