client side GetItemCount

Qbox is hardcoded for ox and the only inventory I know that supports it other than ox is quasar, both are bridged so should be completely fine
This commit is contained in:
MrNewb committed 2025-04-07 14:37:22 -04:00
1 parent 9ad8c6188c
commit e5190cdca0
8 files changed
+70

No files matched your search

+9
View File
@@ -80,6 +80,15 @@ Framework.GetPlayerInventory = function()
return playerData.inventory
end
---comment
---@param item string
---@return number
Framework.GetItemCount = function(item)
local inventory = Framework.GetPlayerInventory()
if not inventory then return 0 end
return inventory[item].count or 0
end
---comment
---@return boolean
Framework.GetIsPlayerDead = function()