mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(bank/clinet): client functionality
This commit is contained in:
1 parent
6f18244397
commit
097524d054
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
import events from '../utils/events';
|
||||
|
||||
|
||||
onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: "BANK",
|
||||
method: "setTransaction",
|
||||
data: transfer
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
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)
|
||||
})
|
||||
Reference in new issue
Block a user