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