prints moved to prefexied prints + comments

This commit is contained in:
MrNewb committed 2025-04-12 02:31:47 -04:00
1 parent d1da9710da
commit e6ffe48d82
4 files changed
+11 -8

No files matched your search

+7 -4
View File
@@ -1,26 +1,29 @@
Inventory = Inventory or {}
---comment
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
---@param item string
---@return table
Inventory.GetItemInfo = function(item)
return Framework.GetItemInfo(item)
end
---comment
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
---@param item string
---@return boolean
Inventory.HasItem = function(item)
return Framework.HasItem(item)
end
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
---@param item string
---@return number
Inventory.GetItemCount = function(item)
return Framework.GetItemCount(item)
end
---comment
---This will provide a image of the community bridge logo if the inventory isnt bridged for the specific path.
---@param item string
---@return string
Inventory.GetImagePath = function(item)
return "https://avatars.githubusercontent.com/u/47620135"
end
end
+1 -1
View File
@@ -59,7 +59,7 @@ end
---@param shopData any
---@return nil
Shops.OpenShop = function(title, shopData)
if not title and not shopData and not title then return print("No Title Passed") end
if not title and not shopData and not title then return Prints.Error("No Title Passed") end
local generatedID = Ids.CreateUniqueId()
local buildMenu = {}
for _, v in pairs(shopData) do
+1 -1
View File
@@ -44,7 +44,7 @@ Shops.CompleteCheckout = function(src, shopName, item, amount, paymentType)
break
end
end
if not itemData then return print("Player ID "..src.." Is Possibly A Cheater And Has Attempted To Purchase A "..item) end
if not itemData then return Prints.Error("Player ID "..src.." Is Possibly A Cheater And Has Attempted To Purchase A "..item) end
if not itemData.price then return end
local balance = Framework.GetAccountBalance(src, paymentType)
local mathStuff = tonumber(itemData.price) * tonumber(amount)
@@ -4,7 +4,7 @@ VehicleKey = VehicleKey or {}
---@param vehicle number The vehicle entity ID.
---@param plate string The plate of the vehicle.
VehicleKey.GiveKeys = function(vehicle, plate)
return true, print("There Is No Vehicle Key System Installed")
return true, Prints.Error("There Is No Vehicle Key System Installed")
end
---This will remove keys from the specifed vehicle/plate.
@@ -12,5 +12,5 @@ end
---@param plate string The plate of the vehicle.
---@return boolean | nil
VehicleKey.RemoveKeys = function(vehicle, plate)
return true, print("There Is No Vehicle Key System Installed")
return true, Prints.Error("There Is No Vehicle Key System Installed")
end