cleanup(bank): client|server| new events

This commit is contained in:
chip committed 2020-11-04 16:33:44 +01:00
1 parent a110c12a66
commit 47ae3d0691
3 files changed
+10 -16

No files matched your search

+3 -4
View File
@@ -12,7 +12,6 @@ onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
})
onNet(events.BANK_SEND_CREDENTIALS, (credentials: any) => {
console.log("Client:", credentials.balance, credentials.name)
SendNuiMessage(
JSON.stringify({
app: "BANK",
@@ -26,10 +25,10 @@ RegisterNuiCallbackType(events.BANK_ADD_TRANSFER);
on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
const transfer = data;
emitNet(events.BANK_ADD_TRANSFER, transfer)
})
setTimeout(() => {
emitNet(events.BANK_FETCH_TRANSACTIONS);
}, 500)
onNet(events.BANK_ADD_TRANSFER_SUCCESS, () => {
emitNet(events.BANK_FETCH_TRANSACTIONS);
})
onNet(events.BANK_TRANSACTION_ALERT, (bool: boolean) => {