fix(init): remove player/ui ready events

This commit is contained in:
Christopher committed 2021-05-16 02:20:17 +02:00
1 parent c5aaf32e5d
commit f89ffc3060
4 files changed
+6 -23

No files matched your search

+2 -7
View File
@@ -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