mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Put ox inventory back in the configuration
This commit is contained in:
@@ -2,8 +2,6 @@ exports("getSharedObject", function()
|
||||
return ESX
|
||||
end)
|
||||
|
||||
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
|
||||
|
||||
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))
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
Config = {}
|
||||
Config.Locale = GetConvar("esx:locale", "en")
|
||||
|
||||
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
|
||||
|
||||
Config.Accounts = {
|
||||
bank = {
|
||||
label = TranslateCap("account_bank"),
|
||||
|
||||
@@ -27,8 +27,7 @@ exports("getSharedObject", function()
|
||||
return ESX
|
||||
end)
|
||||
|
||||
if GetResourceState("ox_inventory") ~= 'missing' then
|
||||
Config.OxInventory = true
|
||||
if Config.OxInventory then
|
||||
Config.PlayerFunctionOverride = "OxInventory"
|
||||
SetConvarReplicated("inventory:framework", "esx")
|
||||
SetConvarReplicated("inventory:weight", Config.MaxWeight * 1000)
|
||||
|
||||
Reference in New Issue
Block a user