fix(scripts/nui-callbacks): Fixed NUI callback stalls

This commit is contained in:
Taso committed 2021-02-09 18:43:54 -05:00
1 parent 6b21cfddd0
commit 47e1f2950e
5 files changed
+45 -28

No files matched your search

+3 -3
View File
@@ -21,9 +21,9 @@ onNet(events.BANK_SEND_CREDENTIALS, (credentials: any) => {
});
RegisterNuiCallbackType(events.BANK_ADD_TRANSFER);
on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
const transfer = data;
emitNet(events.BANK_ADD_TRANSFER, transfer);
on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any, cb: Function) => {
emitNet(events.BANK_ADD_TRANSFER, data);
cb();
});
onNet(events.BANK_ADD_TRANSFER_SUCCESS, () => {