mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(callback/js): match callback timeout to lua
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { cache } from '../cache';
|
||||
|
||||
const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000);
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
|
||||
|
||||
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
const resolve = pendingCallbacks[key];
|
||||
|
||||
Reference in New Issue
Block a user