mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
fix(main): fixed how events are triggerd when opnening the phone
This commit is contained in:
1 parent
249e0b5db2
commit
29686b9b06
1 file changed
+5
-3
@@ -234,9 +234,10 @@ async function Phone() {
|
||||
if (!isPhoneOpen) {
|
||||
isPhoneOpen = true;
|
||||
await phoneOpenAnim(); // Animation starts before the phone is open
|
||||
emitNet('phone:getCredentials')
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||
emitNet('phone:getCredentials') // Gets the credentials. Will eventually most likely only get the phone number and name, idk.
|
||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||
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()
|
||||
SendNuiMessage(
|
||||
@@ -270,9 +271,10 @@ async function Phone() {
|
||||
if (!isPhoneOpen) {
|
||||
isPhoneOpen = true;
|
||||
await phoneOpenAnim(); // Animation starts before the phone is open
|
||||
emitNet('phone:getCredentials')
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||
emitNet('phone:getCredentials')
|
||||
console.log("Sellout fetched from client side")
|
||||
SetCursorLocation(0.936, 0.922) //Experimental
|
||||
let res = GetActiveScreenResolution()
|
||||
SendNuiMessage(
|
||||
|
||||
Reference in new issue
Block a user