diff --git a/client/js/rpc.js b/client/js/rpc.js index d02c27389..18bb023e2 100644 --- a/client/js/rpc.js +++ b/client/js/rpc.js @@ -16,7 +16,7 @@ alt.RPC.send = function (rpcName, ...args) { return result; }; -alt.Events.ScriptRPCAnswer(async ({ answerID, answer, answerError }) => { +alt.Events.onScriptRPCAnswer(async ({ answerID, answer, answerError }) => { if (!pendingRpcMap.has(answerID)) return; const { resolve, reject } = pendingRpcMap.get(answerID); if (answerError.length !== 0) reject(answerError);