Remove example scripts and update core logic

Deleted all files in the examples directory to clean up unused or test scripts. Updated fxmanifest.lua to enable ox_lib initialization. Improved error handling and entity tracking in utility functions, added prop removal, and made minor localization and code style adjustments throughout the codebase. Significant reword of inventory module, notification module, and framework module. Added support for wasabi_uikit, added support for keep-progressbars,
This commit is contained in:
MrNewb committed 2025-12-14 16:22:35 -05:00
1 parent c40a260ea2
commit 343af95794
100 files changed
+2403 -2755

No files matched your search

+9 -24
View File
@@ -1,10 +1,16 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('jpr-inventory') ~= 'started' then return end
if GetResourceState('jpr-inventory') == 'missing' then return end
local jpr = exports['jpr-inventory']
Inventory = Inventory or {}
---Return the item info in oxs format, {name, label, stack, weight, description, image}
---@description This will get the name of the in use resource.
---@return string
Inventory.GetResourceName = function()
return "jpr-inventory"
end
---@description Return the item info in oxs format, {name, label, stack, weight, description, image}
---@param item string
---@return table
Inventory.GetItemInfo = function(item)
@@ -20,28 +26,7 @@ Inventory.GetItemInfo = function(item)
}
end
---This will get the name of the in use resource.
---@return string
Inventory.GetResourceName = function()
return "jpr-inventory"
end
---Will return boolean if the player has the item.
---@param item string
---@return boolean
Inventory.HasItem = function(item)
return jpr:HasItem(item)
end
---This will return the entire items table from the inventory.
---@return table
Inventory.Items = function()
return Framework.Shared.Items
end
---This will get the image path for this item, if not found will return placeholder.
---@description This will get the image path for this item, if not found will return placeholder.
---@param item string
---@return string
Inventory.GetImagePath = function(item)