mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 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
+4
-2
@@ -234,9 +234,10 @@ async function Phone() {
|
|||||||
if (!isPhoneOpen) {
|
if (!isPhoneOpen) {
|
||||||
isPhoneOpen = true;
|
isPhoneOpen = true;
|
||||||
await phoneOpenAnim(); // Animation starts before the phone is open
|
await phoneOpenAnim(); // Animation starts before the phone is open
|
||||||
|
emitNet('phone:getCredentials')
|
||||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||||
emitNet('phone:getCredentials') // Gets the credentials. Will eventually most likely only get the phone number and name, idk.
|
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
|
SetCursorLocation(0.90, 0.922) //Experimental
|
||||||
let res = GetActiveScreenResolution()
|
let res = GetActiveScreenResolution()
|
||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
@@ -270,9 +271,10 @@ async function Phone() {
|
|||||||
if (!isPhoneOpen) {
|
if (!isPhoneOpen) {
|
||||||
isPhoneOpen = true;
|
isPhoneOpen = true;
|
||||||
await phoneOpenAnim(); // Animation starts before the phone is open
|
await phoneOpenAnim(); // Animation starts before the phone is open
|
||||||
|
emitNet('phone:getCredentials')
|
||||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||||
emitNet('phone:getCredentials')
|
console.log("Sellout fetched from client side")
|
||||||
SetCursorLocation(0.936, 0.922) //Experimental
|
SetCursorLocation(0.936, 0.922) //Experimental
|
||||||
let res = GetActiveScreenResolution()
|
let res = GetActiveScreenResolution()
|
||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
|
|||||||
Reference in new issue
Block a user