mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 09:18:56 +00:00
remove import
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user