@@ -143,9 +143,12 @@ Citizen.CreateThread(function()
143143while Config .apiVersion == - 1 do
144144Wait (1000 )
145145end
146- if not Config . apiSendEnabled or (Config .noUnitTimer == " true" or Config .noUnitTimer == true )or Config .apiVersion < 3 then
146+ if (Config .noUnitTimer == " true" or Config .noUnitTimer == true )or Config .apiVersion < 3 then
147147debugLog (" Disabling active units routine" )
148148return
149+ elseif not Config .apiSendEnabled then
150+ errorLog (" Config.apiSendEnabled disabled via convar or config, skipping unit caching. Check your config if this is unintentional." )
151+ return
149152end
150153while true do
151154local OldUnits = {}
@@ -200,9 +203,12 @@ CreateThread(function()
200203while Config .apiVersion == - 1 do
201204Wait (10 )
202205end
203- if not Config . apiSendEnabled or Config .apiVersion < 3 then
206+ if Config .apiVersion < 3 then
204207debugLog (" Too low version or API disabled, skip call caching" )
205208return
209+ elseif not Config .apiSendEnabled then
210+ errorLog (" Config.apiSendEnabled disabled via convar or config, skipping call caching. Check your config if this is unintentional." )
211+ return
206212end
207213local payload = {serverId = Config .serverId }
208214while true do