diff --git a/sonorancad/core/server.lua b/sonorancad/core/server.lua index 36ce911..0a26cdd 100644 --- a/sonorancad/core/server.lua +++ b/sonorancad/core/server.lua @@ -88,13 +88,15 @@ function performApiRequest(postData, type, cb) if ApiEndpoints[type] ~= nil then endpoint = ApiEndpoints[type] end + local url = "" if endpoint == "support" then apiUrl = "https://api.sonoransoftware.com/" + url = apiUrl..tostring(endpoint).."/" else apiUrl = getApiUrl() + url = apiUrl..tostring(endpoint).."/"..tostring(type:lower()) end assert(type ~= nil, "No type specified, invalid request.") - local url = apiUrl..tostring(endpoint).."/"..tostring(type:lower()) if Config.critError then return elseif not Config.apiSendEnabled then diff --git a/sonorancad/fxmanifest.lua b/sonorancad/fxmanifest.lua index fcf7ae3..5cb6dfa 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.4.0' +version '2.3.3' server_scripts { 'core/http.js'