mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
feat(phone/package): using my own package, because its better
This commit is contained in:
1 parent
550eb8f38f
commit
6d339e0627
2 files changed
+11
-6
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
import { ESXClient } from "fivem-esx-js/client/esx_client";
|
import { Client } from 'esx.js';
|
||||||
|
|
||||||
import './cl_main';
|
import './cl_main';
|
||||||
import './cl_twitter';
|
import './cl_twitter';
|
||||||
import './cl_contacts';
|
import './cl_contacts';
|
||||||
@@ -8,10 +9,10 @@ import './cl_notes';
|
|||||||
import './cl_photo';
|
import './cl_photo';
|
||||||
import './cl_messages';
|
import './cl_messages';
|
||||||
|
|
||||||
export let ESX: ESXClient = null;
|
export let ESX: Client = null;
|
||||||
|
|
||||||
setTick(() => {
|
setTick(() => {
|
||||||
while (ESX === null) {
|
while (ESX === null) {
|
||||||
emit("esx:getSharedObject", (obj: ESXClient) => (ESX = obj));
|
emit("esx:getSharedObject", (obj: Client) => (ESX = obj));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ESXServer } from "fivem-esx-js/server/esx_server";
|
import { Server } from 'esx.js';
|
||||||
|
|
||||||
import './db';
|
import './db';
|
||||||
import './sv_twitter';
|
import './sv_twitter';
|
||||||
@@ -10,7 +10,11 @@ import './sv_notes';
|
|||||||
import './sv_photo';
|
import './sv_photo';
|
||||||
import './sv_messages';
|
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
|
||||||
Reference in new issue
Block a user