mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/client): sending credentials to NUI
This commit is contained in:
1 parent
4d4e60f470
commit
40a6076485
1 file changed
+11
@@ -11,6 +11,17 @@ onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
|
||||
)
|
||||
})
|
||||
|
||||
onNet(events.BANK_SEND_CREDENTIALS, (credentials: any) => {
|
||||
console.log("Client:", credentials.balance, credentials.name)
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: "BANK",
|
||||
method: "setCredentials",
|
||||
data: credentials
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
RegisterNuiCallbackType(events.BANK_ADD_TRANSFER);
|
||||
on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
|
||||
const transfer = data;
|
||||
|
||||
Reference in new issue
Block a user