mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 09:18:56 +00:00
Merge pull request #92 from negbook/patch-1
avoid creating multiply exports per scripts
This commit is contained in:
+7
-5
@@ -1,7 +1,9 @@
|
||||
function GetSharedObject()
|
||||
return QBCore
|
||||
if GetCurrentResourceName() == 'qb-core' then
|
||||
function GetSharedObject()
|
||||
return QBCore
|
||||
end
|
||||
|
||||
exports('GetSharedObject', GetSharedObject)
|
||||
end
|
||||
|
||||
exports('GetSharedObject', GetSharedObject)
|
||||
|
||||
QBCore = exports['qb-core']:GetSharedObject()
|
||||
QBCore = exports['qb-core']:GetSharedObject()
|
||||
|
||||
Reference in New Issue
Block a user