Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #96 from Fireant456/fix-version-check-2
Browse files Browse the repository at this point in the history
v2.9.33 - Fix for version check on new servers where build number exceeds 10000
  • Loading branch information
Fireant456 authored Oct 3, 2024
2 parents 6fa0d18 + f1c951a commit 49f8312
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sonorancad/core/shared_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sonorancad/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion sonorancad/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"resource" : "2.9.32",
"resource" : "2.9.33",
"testedFxServerVersion": "5932"
}

0 comments on commit 49f8312

Please sign in to comment.