mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Merge pull request #155 from project-error/tweak/remove-esx-code
feat(standalone): Allows for the phone to be free from framework requirements
This commit is contained in:
15 files changed
+349
-146
No files matched your search
@@ -19,7 +19,7 @@ function fetchOnInitialize() {
|
||||
JSON.stringify({
|
||||
app: 'PHONE',
|
||||
method: 'setPhoneReady',
|
||||
data: true,
|
||||
data: isPhoneReady,
|
||||
}),
|
||||
);
|
||||
}
|
||||
@@ -110,7 +110,8 @@ async function Phone(): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
onNet('esx:playerLoaded', fetchOnInitialize);
|
||||
// triggerd when the player is ready
|
||||
onNet(events.PLAYER_IS_READY, fetchOnInitialize);
|
||||
|
||||
AddEventHandler('onResourceStop', function (resource: string) {
|
||||
if (resource === GetCurrentResourceName()) {
|
||||
|
||||
Reference in new issue
Block a user