Put ox inventory back in the configuration

This commit is contained in:
Arctos2win
2024-01-25 16:34:44 +01:00
committed by GitHub
parent 2dac6a5328
commit 3f13bd57a2
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -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))
+2
View File
@@ -1,6 +1,8 @@
Config = {}
Config.Locale = GetConvar("esx:locale", "en")
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
Config.Accounts = {
bank = {
label = TranslateCap("account_bank"),
+1 -2
View File
@@ -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)