From e18c39169eb809bb24f9ba1fb76941b9c9d1d6ae Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 21 Feb 2021 21:30:55 +0100 Subject: [PATCH] del(client): remove ESX on client runtime --- resources/client/client.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/resources/client/client.ts b/resources/client/client.ts index f7a58e8..526700d 100644 --- a/resources/client/client.ts +++ b/resources/client/client.ts @@ -1,4 +1,3 @@ -import { Client } from 'esx.js'; import ClientUtils from './cl_utils'; import './cl_main'; @@ -12,12 +11,4 @@ import './cl_messages'; import './cl_call'; import './functions'; -export let ESX: Client = null; - -setTick(() => { - while (ESX === null) { - emit('esx:getSharedObject', (obj: Client) => (ESX = obj)); - } -}); - export const ClUtils = new ClientUtils();