mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
feat(bank/client): events for alert and notification
This commit is contained in:
1 parent
198d9937ab
commit
8f0b6efd01
1 file changed
+12
-2
@@ -32,12 +32,22 @@ on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
|
||||
}, 500)
|
||||
})
|
||||
|
||||
onNet(events.BANK_TRANSACTION_ALERT, (message: string, alert: string) => {
|
||||
onNet(events.BANK_TRANSACTION_ALERT, (bool: boolean) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'BANK',
|
||||
method: 'setAlert',
|
||||
data: { message, alert }
|
||||
data: bool
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
onNet(events.BANK_TRANSACTION_NOTIFICATION, (transfer: any) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: "BANK",
|
||||
method: 'setNotification',
|
||||
data: transfer
|
||||
})
|
||||
)
|
||||
})
|
||||
Reference in new issue
Block a user