refactor(callback): increase default timeout

This commit is contained in:
Linden
2024-05-21 05:50:06 +10:00
parent 080a9c2442
commit a40be54a9e
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
local pendingCallbacks = {} local pendingCallbacks = {}
local timers = {} local timers = {}
local cbEvent = '__ox_cb_%s' local cbEvent = '__ox_cb_%s'
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000) local callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000)
RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...) RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...)
local cb = pendingCallbacks[key] local cb = pendingCallbacks[key]

View File

@@ -1,6 +1,6 @@
local pendingCallbacks = {} local pendingCallbacks = {}
local cbEvent = '__ox_cb_%s' local cbEvent = '__ox_cb_%s'
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000) local callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000)
RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...) RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...)
local cb = pendingCallbacks[key] local cb = pendingCallbacks[key]