feat(phone/package): using my own package, because its better

This commit is contained in:
Christopher committed 2020-12-11 20:45:02 +01:00
1 parent 550eb8f38f
commit 6d339e0627
2 files changed
+11 -6

No files matched your search

+4 -3
View File
@@ -1,4 +1,5 @@
import { ESXClient } from "fivem-esx-js/client/esx_client";
import { Client } from 'esx.js';
import './cl_main';
import './cl_twitter';
import './cl_contacts';
@@ -8,10 +9,10 @@ import './cl_notes';
import './cl_photo';
import './cl_messages';
export let ESX: ESXClient = null;
export let ESX: Client = null;
setTick(() => {
while (ESX === null) {
emit("esx:getSharedObject", (obj: ESXClient) => (ESX = obj));
emit("esx:getSharedObject", (obj: Client) => (ESX = obj));
}
});
+7 -3
View File
@@ -1,4 +1,4 @@
import { ESXServer } from "fivem-esx-js/server/esx_server";
import { Server } from 'esx.js';
import './db';
import './sv_twitter';
@@ -10,7 +10,11 @@ import './sv_notes';
import './sv_photo';
import './sv_messages';
export let ESX: ESXServer = null;
export let ESX: Server = null;
emit("esx:getSharedObject", (obj: ESXServer) => (ESX = obj));
export const getSource = () => (global as any).source;
emit("esx:getSharedObject", (obj: Server) => (ESX = obj));
// i llke t-notify