mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
tweak(resources/main): getPlayerIdentifirs use
This commit is contained in:
1 parent
5d456d18c1
commit
a424a67f05
2 files changed
+2
-14
No files matched your search
@@ -5,13 +5,6 @@ import { phoneCloseAnim, phoneOpenAnim, removePhoneProp } from './functions';
|
|||||||
let isPhoneOpen = false;
|
let isPhoneOpen = false;
|
||||||
let isPhoneReady = false;
|
let isPhoneReady = false;
|
||||||
|
|
||||||
while (true) {
|
|
||||||
if (NetworkIsPlayerActive(PlayerId())) {
|
|
||||||
emitNet(events.PHONE_IS_READY);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* * * * * * * * * * * * *
|
/* * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Phone initialize data
|
* Phone initialize data
|
||||||
|
|||||||
@@ -26,13 +26,8 @@ on('playerJoining', async () => {
|
|||||||
|
|
||||||
let identifier = null;
|
let identifier = null;
|
||||||
|
|
||||||
for (let i = 0; i < GetNumPlayerIdentifiers(pSource); i++) {
|
const identifers = getPlayerIdentifiers(pSource);
|
||||||
const identifiers = GetPlayerIdentifier(pSource, i);
|
identifier = identifers[1].split(':')[1];
|
||||||
|
|
||||||
if (identifiers.includes('license')) {
|
|
||||||
identifier = identifiers.split(':')[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('PHONE IS READY: ', identifier);
|
console.log('PHONE IS READY: ', identifier);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user