mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
fix(scripts/nui-callbacks): Fixed NUI callback stalls
This commit is contained in:
1 parent
6b21cfddd0
commit
47e1f2950e
5 files changed
+45
-28
No files matched your search
@@ -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, () => {
|
||||
|
||||
Reference in new issue
Block a user