mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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)
|
}, 500)
|
||||||
})
|
})
|
||||||
|
|
||||||
onNet(events.BANK_TRANSACTION_ALERT, (message: string, alert: string) => {
|
onNet(events.BANK_TRANSACTION_ALERT, (bool: boolean) => {
|
||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
app: 'BANK',
|
app: 'BANK',
|
||||||
method: 'setAlert',
|
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