server/client functionality for transferring + alerts | not done

This commit is contained in:
chip committed 2020-11-03 12:33:23 +01:00
1 parent e17f9211f5
commit 8dc15d5cc8
2 files changed
+21 -14

No files matched your search

+10
View File
@@ -31,3 +31,13 @@ on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
emitNet(events.BANK_FETCH_TRANSACTIONS);
}, 500)
})
onNet(events.BANK_TRANSACTION_ALERT, (message: string, alert: string) => {
SendNuiMessage(
JSON.stringify({
app: 'BANK',
method: 'setAlert',
data: { message, alert }
})
)
})