mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(bank): update all events
This commit is contained in:
1 parent
5654e1f46f
commit
de10ce92b2
3 files changed
+8
-4
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { IAlertProps } from '../../typings/alerts';
|
||||
import { BankEvents } from '../../typings/bank';
|
||||
import { PhoneEvents } from '../../typings/phone';
|
||||
|
||||
onNet(BankEvents.SEND_TRANSFERS, (transfer: any) => {
|
||||
SendNuiMessage(
|
||||
@@ -35,7 +36,7 @@ onNet(BankEvents.TRANSACTION_ALERT, (result: IAlertProps) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'BANK',
|
||||
method: 'setAlert',
|
||||
method: PhoneEvents.SET_ALERT,
|
||||
data: result,
|
||||
}),
|
||||
);
|
||||
@@ -45,7 +46,7 @@ onNet(BankEvents.TRANSACTION_NOTIFICATION, (transfer: any) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'BANK',
|
||||
method: 'setNotification',
|
||||
method: PhoneEvents.SET_NOTIFICATION,
|
||||
data: transfer,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user