diff --git a/[core]/es_extended/client/common.lua b/[core]/es_extended/common/object.lua similarity index 97% rename from [core]/es_extended/client/common.lua rename to [core]/es_extended/common/object.lua index 2191d17a2..bd8f80097 100644 --- a/[core]/es_extended/client/common.lua +++ b/[core]/es_extended/common/object.lua @@ -1,8 +1,8 @@ -exports("getSharedObject", function() - return ESX -end) - -AddEventHandler("esx:getSharedObject", function() - local Invoke = GetInvokingResource() - print(("[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!"):format(Invoke)) -end) +exports("getSharedObject", function() + return ESX +end) + +AddEventHandler("esx:getSharedObject", function() + local Invoke = GetInvokingResource() + print(("[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!"):format(Invoke)) +end) \ No newline at end of file diff --git a/[core]/es_extended/fxmanifest.lua b/[core]/es_extended/fxmanifest.lua index cac174a7d..99fdb131c 100644 --- a/[core]/es_extended/fxmanifest.lua +++ b/[core]/es_extended/fxmanifest.lua @@ -11,6 +11,9 @@ shared_scripts { 'config.lua', 'config.weapons.lua', + + 'common/modules/*.lua', + 'common/*.lua', } server_scripts { @@ -27,8 +30,6 @@ server_scripts { 'server/main.lua', 'server/commands.lua', - 'common/modules/*.lua', - 'common/functions.lua', 'server/modules/actions.lua', 'server/modules/npwd.lua' } @@ -41,9 +42,6 @@ client_scripts { 'client/main.lua', - 'common/modules/*.lua', - 'common/functions.lua', - 'common/functions.lua', 'client/modules/actions.lua', 'client/modules/death.lua', diff --git a/[core]/es_extended/server/common.lua b/[core]/es_extended/server/common.lua index 68bc94c94..f69f5838e 100644 --- a/[core]/es_extended/server/common.lua +++ b/[core]/es_extended/server/common.lua @@ -18,15 +18,6 @@ RegisterNetEvent("esx:onPlayerSpawn", function() ESX.Players[source].spawned = true end) -AddEventHandler("esx:getSharedObject", function() - local Invoke = GetInvokingResource() - print(("[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!"):format(Invoke)) -end) - -exports("getSharedObject", function() - return ESX -end) - if Config.OxInventory then Config.PlayerFunctionOverride = "OxInventory" SetConvarReplicated("inventory:framework", "esx")