mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
refactor(callback/client): require source in response handler
This commit is contained in:
@@ -4,6 +4,8 @@ const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
|
||||
|
||||
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
if (!source) return;
|
||||
|
||||
const resolve = pendingCallbacks[key];
|
||||
|
||||
if (!resolve) return;
|
||||
|
||||
Reference in New Issue
Block a user