mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(init): remove player/ui ready events
This commit is contained in:
1 parent
c5aaf32e5d
commit
f89ffc3060
4 files changed
+6
-23
No files matched your search
@@ -131,13 +131,8 @@ onNet(PhoneEvents.SEND_CREDENTIALS, (number: string) => {
|
||||
sendMessage('SIMCARD', PhoneEvents.SET_NUMBER, number);
|
||||
});
|
||||
|
||||
RegisterNuiCallbackType(PhoneEvents.UI_IS_READY);
|
||||
on(`__cfx_nui:${PhoneEvents.UI_IS_READY}`, (_data: any, cb: Function) => {
|
||||
isUiReady = true;
|
||||
if (isPlayerReady) {
|
||||
fetchOnInitialize();
|
||||
}
|
||||
cb();
|
||||
onNet(PhoneEvents.ON_INIT, () => {
|
||||
fetchOnInitialize();
|
||||
});
|
||||
|
||||
// DO NOT CHANGE THIS EITHER, PLEASE - CHIP
|
||||
|
||||
Reference in new issue
Block a user