Merge branch 'master' of github.com:Re-Ignited-Development/new-phone-who-dis into feature/twitter-delete

This commit is contained in:
erik-sn committed 2020-10-28 17:06:16 -04:00
commit 8c1f823bcb
30 files changed
+873 -52

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import events from '../utils/events';
onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
SendNuiMessage(
JSON.stringify({
app: "BANK",
method: "setTransaction",
data: transfer
})
)
})
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;
emitNet(events.BANK_ADD_TRANSFER, transfer)
setTimeout(() => {
emitNet(events.BANK_FETCH_TRANSACTIONS);
}, 500)
})
+4
View File
@@ -237,6 +237,8 @@ async function Phone() {
emitNet('phone:getCredentials')
emitNet(events.CONTACTS_GET_CONTACTS);
emitNet(events.SELLOUT_FETCH_LISTING);
emitNet(events.BANK_FETCH_TRANSACTIONS);
emitNet(events.BANK_GET_CREDENTIALS);
console.log("Sellout fetched from client side")// Gets the credentials. Will eventually most likely only get the phone number and name, idk.
SetCursorLocation(0.90, 0.922) //Experimental
let res = GetActiveScreenResolution()
@@ -274,6 +276,8 @@ async function Phone() {
emitNet('phone:getCredentials')
emitNet(events.CONTACTS_GET_CONTACTS);
emitNet(events.SELLOUT_FETCH_LISTING);
emitNet(events.BANK_FETCH_TRANSACTIONS);
emitNet(events.BANK_GET_CREDENTIALS);
console.log("Sellout fetched from client side")
SetCursorLocation(0.936, 0.922) //Experimental
let res = GetActiveScreenResolution()
+1
View File
@@ -3,6 +3,7 @@ import './cl_main';
import './cl_twitter';
import './cl_contacts';
import './cl_sellout';
import './cl_bank';
export let ESX: ESXClient = null;