From 6e7b0703af1c60bf950a77162c5e60811bb43979 Mon Sep 17 00:00:00 2001 From: Kakarot <57848836+GhzGarage@users.noreply.github.com> Date: Mon, 10 Jan 2022 11:39:28 -0600 Subject: [PATCH] remove import --- shared/import.lua | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 shared/import.lua diff --git a/shared/import.lua b/shared/import.lua deleted file mode 100644 index 775e253..0000000 --- a/shared/import.lua +++ /dev/null @@ -1,16 +0,0 @@ --- This file primarily is for implicit handling for restarts of `qb-core` --- Whenever qb-core is restarted, the shared object table containing --- function refs becomes invalid. To solve this, we must reassign our --- table again with the update function ref pointers at resource start - --- Any changes to the resource name, means this handler won't work anymore - -QBCore = exports['qb-core']:GetCoreObject() - -AddEventHandler('onResourceStart', function(resName) - -- We only want to reassign funcref table, - -- when qb-core resource status changes. - if resName ~= 'qb-core' then return end - -- Lets refresh local table with updated func refs - QBCore = exports['qb-core']:GetCoreObject() -end) \ No newline at end of file