mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +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 isPhoneReady = false;
|
||||
|
||||
while (true) {
|
||||
if (NetworkIsPlayerActive(PlayerId())) {
|
||||
emitNet(events.PHONE_IS_READY);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* * * * * * * * * * * * *
|
||||
*
|
||||
* Phone initialize data
|
||||
|
||||
@@ -26,13 +26,8 @@ on('playerJoining', async () => {
|
||||
|
||||
let identifier = null;
|
||||
|
||||
for (let i = 0; i < GetNumPlayerIdentifiers(pSource); i++) {
|
||||
const identifiers = GetPlayerIdentifier(pSource, i);
|
||||
|
||||
if (identifiers.includes('license')) {
|
||||
identifier = identifiers.split(':')[1];
|
||||
}
|
||||
}
|
||||
const identifers = getPlayerIdentifiers(pSource);
|
||||
identifier = identifers[1].split(':')[1];
|
||||
|
||||
console.log('PHONE IS READY: ', identifier);
|
||||
|
||||
|
||||
Reference in new issue
Block a user