From 1bb7a60e4ddf2256ffc5da20e3ecad5fdb913527 Mon Sep 17 00:00:00 2001 From: erik-sn Date: Wed, 14 Oct 2020 11:28:48 -0400 Subject: [PATCH] remove unused line in import.sql --- resources/client/cl_main.ts | 11 +---------- resources/client/client.ts | 2 +- resources/import.sql | 1 - 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/resources/client/cl_main.ts b/resources/client/cl_main.ts index 684e21b..de62895 100644 --- a/resources/client/cl_main.ts +++ b/resources/client/cl_main.ts @@ -1,16 +1,7 @@ -import { ESXClient } from "fivem-esx-js/client/esx_client"; +import { ESX } from "../client/client"; import config from '../utils/config'; import { Delay } from '../utils/fivem'; -let ESX: ESXClient = null; - -setTick(() => { - while (ESX === null) { - emit('esx:getSharedObject', (obj: ESXClient) => ESX = obj); - }; -}); - - RegisterCommand('phone:close', (source: any, args: string[], raw: any) => { phoneCloseAnim() diff --git a/resources/client/client.ts b/resources/client/client.ts index ee2b5f8..e1687d3 100644 --- a/resources/client/client.ts +++ b/resources/client/client.ts @@ -3,7 +3,7 @@ import './cl_main'; import './cl_twitter'; -let ESX: ESXClient = null; +export let ESX: ESXClient = null; setTick(() => { while (ESX === null) { diff --git a/resources/import.sql b/resources/import.sql index df92cad..c1c6127 100644 --- a/resources/import.sql +++ b/resources/import.sql @@ -56,4 +56,3 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_likes` ( CONSTRAINT `profile` FOREIGN KEY (`profile_id`) REFERENCES `npwd_twitter_profiles` (`id`), CONSTRAINT `tweet` FOREIGN KEY (`tweet_id`) REFERENCES `npwd_twitter_tweets` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -SELECT * FROM es_extended.npwd_twitter_likes; \ No newline at end of file