Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 245d595

Browse files
authored
feat(client): add convar to disable inventory setup notification (#8)
1 parent 5ad0a9d commit 245d595

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

client.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,10 @@ RegisterNetEvent('ox_inventory:setPlayerInventory', function(currentDrops, inven
13361336

13371337
PlayerData.loaded = true
13381338

1339-
lib.notify({ description = locale('inventory_setup') })
1339+
if not client.disablesetupnotification then
1340+
lib.notify({ description = locale('inventory_setup') })
1341+
end
1342+
13401343
Shops.refreshShops()
13411344
Inventory.Stashes()
13421345
Inventory.Evidence()

init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ else
9393
ignoreweapons = json.decode(GetConvar('inventory:ignoreweapons', '[]')),
9494
suppresspickups = GetConvarInt('inventory:suppresspickups', 1) == 1,
9595
disableweapons = GetConvarInt('inventory:disableweapons', 0) == 1,
96+
disablesetupnotification = GetConvarInt('inventory:disablesetupnotification', 0) == 1,
9697
enablestealcommand = GetConvarInt('inventory:enablestealcommand', 1) == 1,
9798
}
9899

0 commit comments

Comments
 (0)