From e6ffe48d826dce4fb79d0ef312ba115ba880bd99 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sat, 12 Apr 2025 02:31:47 -0400 Subject: [PATCH] prints moved to prefexied prints + comments --- modules/inventory/_default/client.lua | 11 +++++++---- modules/shops/_default/client.lua | 2 +- modules/shops/_default/server.lua | 2 +- modules/vehicleKey/_default/client/client.lua | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/inventory/_default/client.lua b/modules/inventory/_default/client.lua index dc645f3..afd63b6 100644 --- a/modules/inventory/_default/client.lua +++ b/modules/inventory/_default/client.lua @@ -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 \ No newline at end of file diff --git a/modules/shops/_default/client.lua b/modules/shops/_default/client.lua index cc7e377..254b302 100644 --- a/modules/shops/_default/client.lua +++ b/modules/shops/_default/client.lua @@ -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 diff --git a/modules/shops/_default/server.lua b/modules/shops/_default/server.lua index 708c6fd..09a84fa 100644 --- a/modules/shops/_default/server.lua +++ b/modules/shops/_default/server.lua @@ -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) diff --git a/modules/vehicleKey/_default/client/client.lua b/modules/vehicleKey/_default/client/client.lua index 5472dc7..df07dc4 100644 --- a/modules/vehicleKey/_default/client/client.lua +++ b/modules/vehicleKey/_default/client/client.lua @@ -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 \ No newline at end of file