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
+10 -7

No files matched your search

+6 -3
View File
@@ -1,24 +1,27 @@
Inventory = Inventory or {} Inventory = Inventory or {}
---comment ---This will fallback to framework add item functions when an inventory does not have the specifiec function.
---@param item string ---@param item string
---@return table ---@return table
Inventory.GetItemInfo = function(item) Inventory.GetItemInfo = function(item)
return Framework.GetItemInfo(item) return Framework.GetItemInfo(item)
end end
---comment ---This will fallback to framework add item functions when an inventory does not have the specifiec function.
---@param item string ---@param item string
---@return boolean ---@return boolean
Inventory.HasItem = function(item) Inventory.HasItem = function(item)
return Framework.HasItem(item) return Framework.HasItem(item)
end 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) Inventory.GetItemCount = function(item)
return Framework.GetItemCount(item) return Framework.GetItemCount(item)
end end
---comment ---This will provide a image of the community bridge logo if the inventory isnt bridged for the specific path.
---@param item string ---@param item string
---@return string ---@return string
Inventory.GetImagePath = function(item) Inventory.GetImagePath = function(item)
+1 -1
View File
@@ -59,7 +59,7 @@ end
---@param shopData any ---@param shopData any
---@return nil ---@return nil
Shops.OpenShop = function(title, shopData) 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 generatedID = Ids.CreateUniqueId()
local buildMenu = {} local buildMenu = {}
for _, v in pairs(shopData) do for _, v in pairs(shopData) do
+1 -1
View File
@@ -44,7 +44,7 @@ Shops.CompleteCheckout = function(src, shopName, item, amount, paymentType)
break break
end end
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 if not itemData.price then return end
local balance = Framework.GetAccountBalance(src, paymentType) local balance = Framework.GetAccountBalance(src, paymentType)
local mathStuff = tonumber(itemData.price) * tonumber(amount) local mathStuff = tonumber(itemData.price) * tonumber(amount)
@@ -4,7 +4,7 @@ VehicleKey = VehicleKey or {}
---@param vehicle number The vehicle entity ID. ---@param vehicle number The vehicle entity ID.
---@param plate string The plate of the vehicle. ---@param plate string The plate of the vehicle.
VehicleKey.GiveKeys = function(vehicle, plate) 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 end
---This will remove keys from the specifed vehicle/plate. ---This will remove keys from the specifed vehicle/plate.
@@ -12,5 +12,5 @@ end
---@param plate string The plate of the vehicle. ---@param plate string The plate of the vehicle.
---@return boolean | nil ---@return boolean | nil
VehicleKey.RemoveKeys = function(vehicle, plate) 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 end