From 11e3e2181fd65f428b8496f4772ddc4e707099ef Mon Sep 17 00:00:00 2001 From: Jackson Abney <44131234+hickorysb@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:29:43 +0000 Subject: [PATCH 1/2] Fix for version check on new servers where build number exceeds 10000. --- sonorancad/core/shared_functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonorancad/core/shared_functions.lua b/sonorancad/core/shared_functions.lua index 094ff03..4b0909b 100644 --- a/sonorancad/core/shared_functions.lua +++ b/sonorancad/core/shared_functions.lua @@ -82,7 +82,8 @@ end function getServerVersion() local s = GetConvar("version", "") local v = s:find("v1.0.0.") - local i = string.gsub(s:sub(v),"v1.0.0.",""):sub(1,4) + local e = string.gsub(s:sub(v),"v1.0.0.","") + local i = e:sub(1, string.len(e) - e:find(" ")) return i end From f1c951ad1dcb3feb262c6b82416e4d3f2a6bc8f5 Mon Sep 17 00:00:00 2001 From: El Gato da Great Date: Thu, 3 Oct 2024 13:31:22 -0500 Subject: [PATCH 2/2] chore: version bump v2.9.33 --- sonorancad/fxmanifest.lua | 2 +- sonorancad/version.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonorancad/fxmanifest.lua b/sonorancad/fxmanifest.lua index 8ebbb82..c0ed335 100644 --- a/sonorancad/fxmanifest.lua +++ b/sonorancad/fxmanifest.lua @@ -3,7 +3,7 @@ games {'gta5'} author 'Sonoran CAD' description 'Sonoran CAD FiveM Integration' -version '2.9.32' +version '2.9.33' server_scripts { 'core/http.js' diff --git a/sonorancad/version.json b/sonorancad/version.json index d492efe..257140a 100644 --- a/sonorancad/version.json +++ b/sonorancad/version.json @@ -1,4 +1,4 @@ { - "resource" : "2.9.32", + "resource" : "2.9.33", "testedFxServerVersion": "5932" }