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

Commit

Permalink
fix: Tablet startup error
Browse files Browse the repository at this point in the history
tweak: Check for depreciated plugins on client loader as well
  • Loading branch information
Jordan2139 committed Nov 6, 2024
1 parent 6237736 commit 8ced9fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions sonorancad/core/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getApiMode()
end
end

exports('getApiMode', getApiMode())
exports('getApiMode', getApiMode)

Config.GetPluginConfig = function(pluginName)
local correctConfig = nil
Expand All @@ -41,8 +41,9 @@ Config.GetPluginConfig = function(pluginName)
end
return Config.plugins[pluginName]
else
if pluginName == 'yourpluginname' then
return {enabled = false, disableReason = 'Template plugin'}
if pluginName == 'apicheck' or pluginName == 'livemap' or pluginName ==
'smartsigns' then
return {enabled = false, disableReason = 'deprecated plugin'}
end
correctConfig = LoadResourceFile(GetCurrentResourceName(),
'/configuration/' .. pluginName ..
Expand Down
2 changes: 1 addition & 1 deletion tablet/cl_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Citizen.CreateThread(function()
end
local convar = GetConvar("sonorantablet_cadUrl", tabletURL)
local comId = convar:match("comid=(%w+)")
if comId ~= "" then
if comId ~= "" and comId ~= nil then
SetModuleUrl("cad", GetConvar("sonorantablet_cadUrl", tabletURL .. 'login?comid='..comId), true)
else
SetModuleUrl("cad", GetConvar("sonorantablet_cadUrl", tabletURL), false)
Expand Down

0 comments on commit 8ced9fe

Please sign in to comment.