From 90c65dc55e361f6f68c18cffe2660d8ce4e01e4f Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Wed, 10 Sep 2025 12:27:12 -0400 Subject: [PATCH] Add GetResourceName function to all modules Introduces a standardized GetResourceName function to banking, clothing, dispatch, doorlock, framework, fuel, helptext, housing, and other modules. This function returns the name of the in-use resource, improving resource identification and interoperability across the codebase. --- modules/banking/_default/server.lua | 6 ++++++ modules/banking/fd_banking/server.lua | 6 ++++++ modules/banking/kartik-banking/server.lua | 6 ++++++ modules/banking/okokBanking/server.lua | 6 ++++++ modules/banking/qb-banking/server.lua | 6 ++++++ modules/banking/renewed-banking/server.lua | 6 ++++++ modules/banking/tgg-banking/server.lua | 6 ++++++ modules/banking/tgiann-bank/server.lua | 6 ++++++ modules/banking/wasabi_banking/server.lua | 6 ++++++ modules/clothing/_default/client.lua | 7 +++++++ modules/clothing/_default/server.lua | 6 ++++++ modules/clothing/esx_skin/client.lua | 6 ++++++ modules/clothing/esx_skin/server.lua | 6 ++++++ modules/clothing/fivem-appearance/client.lua | 6 ++++++ modules/clothing/fivem-appearance/server.lua | 6 ++++++ .../clothing/illenium-appearance/client.lua | 6 ++++++ .../clothing/illenium-appearance/server.lua | 6 ++++++ modules/clothing/qb-clothing/client.lua | 6 ++++++ modules/clothing/qb-clothing/server.lua | 6 ++++++ modules/clothing/rcore_clothing/client.lua | 6 ++++++ modules/dispatch/_default/client/client.lua | 6 ++++++ modules/dispatch/_default/server/server.lua | 6 ++++++ modules/dispatch/bub-mdt/client/client.lua | 6 ++++++ modules/dispatch/bub-mdt/server/server.lua | 6 ++++++ .../dispatch/cd_dispatch/client/client.lua | 6 ++++++ .../dispatch/cd_dispatch/server/server.lua | 6 ++++++ modules/dispatch/kartik-mdt/client/client.lua | 6 ++++++ modules/dispatch/kartik-mdt/server/server.lua | 6 ++++++ modules/dispatch/lb-tablet/client/client.lua | 6 ++++++ modules/dispatch/lb-tablet/server/server.lua | 6 ++++++ .../linden_outlawalert/client/client.lua | 6 ++++++ .../linden_outlawalert/server/server.lua | 6 ++++++ .../dispatch/origen_police/server/server.lua | 6 ++++++ .../dispatch/piotreq_gpt/client/client.lua | 6 ++++++ .../dispatch/piotreq_gpt/server/server.lua | 6 ++++++ .../dispatch/ps-dispatch/client/client.lua | 6 ++++++ .../dispatch/ps-dispatch/server/server.lua | 6 ++++++ .../dispatch/qs_dispatch/client/client.lua | 7 +++++++ .../dispatch/qs_dispatch/server/server.lua | 7 +++++++ .../dispatch/redutzu-mdt/client/client.lua | 7 +++++++ .../dispatch/redutzu-mdt/server/server.lua | 6 ++++++ .../dispatch/tk_dispatch/client/client.lua | 6 ++++++ .../dispatch/tk_dispatch/server/server.lua | 6 ++++++ modules/doorlock/_default/server.lua | 6 ++++++ modules/doorlock/doors_creator/client.lua | 6 ++++++ modules/doorlock/doors_creator/server.lua | 6 ++++++ modules/doorlock/ox_doorlock/client.lua | 6 ++++++ modules/doorlock/ox_doorlock/server.lua | 6 ++++++ modules/doorlock/qb-doorlock/client.lua | 6 ++++++ modules/doorlock/qb-doorlock/server.lua | 6 ++++++ modules/doorlock/rcore_doorlock/client.lua | 6 ++++++ modules/doorlock/rcore_doorlock/server.lua | 7 +++++++ modules/framework/_default/client.lua | 6 ++++++ modules/framework/_default/server.lua | 6 ++++++ modules/framework/es_extended/client.lua | 6 ++++++ modules/framework/es_extended/server.lua | 6 ++++++ modules/framework/qb-core/client.lua | 6 ++++++ modules/framework/qb-core/server.lua | 6 ++++++ modules/framework/qbx_core/client.lua | 6 ++++++ modules/framework/qbx_core/server.lua | 6 ++++++ modules/fuel/_default/client.lua | 1 + modules/helptext/_default/client.lua | 6 ++++++ modules/helptext/_default/server.lua | 6 ++++++ modules/helptext/cd_drawtextui/client.lua | 6 ++++++ modules/helptext/jg-textui/client.lua | 6 ++++++ modules/helptext/lab-HintUI/client.lua | 6 ++++++ modules/helptext/lation_ui/client.lua | 6 ++++++ modules/helptext/okokTextUI/client.lua | 6 ++++++ modules/helptext/ox_lib/client.lua | 6 ++++++ modules/housing/_default/client.lua | 6 ++++++ modules/housing/_default/server.lua | 6 ++++++ modules/housing/bcs-housing/client.lua | 6 ++++++ modules/housing/bcs-housing/server.lua | 6 ++++++ modules/housing/esx_property/client.lua | 6 ++++++ modules/housing/esx_property/server.lua | 6 ++++++ modules/housing/ps-housing/client.lua | 6 ++++++ modules/housing/ps-housing/server.lua | 6 ++++++ modules/housing/qb-appartments/client.lua | 6 ++++++ modules/housing/qb-appartments/server.lua | 7 +++++++ modules/housing/qb-houses/client.lua | 6 ++++++ modules/housing/qb-houses/server.lua | 6 ++++++ modules/inventory/_default/client.lua | 6 ++++++ modules/inventory/_default/server.lua | 7 +++++++ modules/inventory/codem-inventory/client.lua | 7 +++++++ modules/inventory/codem-inventory/server.lua | 7 +++++++ modules/inventory/core_inventory/client.lua | 7 +++++++ modules/inventory/core_inventory/server.lua | 8 ++++++++ modules/inventory/jpr-inventory/client.lua | 8 ++++++++ modules/inventory/jpr-inventory/server.lua | 6 ++++++ modules/inventory/origen_inventory/client.lua | 6 ++++++ modules/inventory/origen_inventory/server.lua | 6 ++++++ modules/inventory/ox_inventory/client.lua | 6 ++++++ modules/inventory/ox_inventory/server.lua | 6 ++++++ modules/inventory/ps-inventory/client.lua | 6 ++++++ modules/inventory/ps-inventory/server.lua | 6 ++++++ modules/inventory/qb-inventory/client.lua | 6 ++++++ modules/inventory/qb-inventory/server.lua | 6 ++++++ modules/inventory/qs-inventory/client.lua | 6 ++++++ modules/inventory/qs-inventory/server.lua | 6 ++++++ modules/inventory/tgiann-inventory/client.lua | 6 ++++++ modules/inventory/tgiann-inventory/server.lua | 6 ++++++ modules/notify/_default/client.lua | 2 +- modules/notify/_default/server.lua | 4 ++++ modules/phone/_default/client.lua | 4 ++++ modules/phone/_default/server.lua | 4 ++++ modules/phone/gksphone/client.lua | 4 ++++ modules/phone/gksphone/server.lua | 4 ++++ modules/phone/lb-phone/client.lua | 4 ++++ modules/phone/lb-phone/server.lua | 4 ++++ modules/phone/okokPhone/client.lua | 4 ++++ modules/phone/okokPhone/server.lua | 4 ++++ modules/phone/qs-smartphone/client.lua | 4 ++++ modules/phone/qs-smartphone/server.lua | 4 ++++ modules/phone/yseries/client.lua | 4 ++++ modules/phone/yseries/server.lua | 4 ++++ modules/progressbar/lation_ui/client.lua | 5 +++++ modules/progressbar/ox_lib/client.lua | 4 ++++ modules/progressbar/qb-progressbar/client.lua | 4 ++++ modules/skills/_default/client.lua | 9 +++------ modules/skills/_default/server.lua | 3 +-- modules/target/_default/client.lua | 4 ++++ modules/target/ox_target/client.lua | 4 ++++ modules/target/qb-target/client.lua | 4 ++++ modules/target/sleepless_interact/client.lua | 4 ++++ .../F_RealCarKeysSystem/client/client.lua | 19 +++++++++---------- .../MrNewbVehicleKeys/client/client.lua | 4 ++++ .../Renewed-Vehiclekeys/client/client.lua | 4 ++++ modules/vehicleKey/_default/client/client.lua | 8 ++++++-- .../vehicleKey/cd_garage/client/client.lua | 8 ++++++-- modules/vehicleKey/jacksam/client.lua | 4 ++++ modules/vehicleKey/mVehicle/client/client.lua | 6 +++++- .../mk_vehiclekeys/client/client.lua | 4 ++++ .../vehicleKey/okokGarage/client/client.lua | 4 ++++ .../qb-vehiclekeys/client/client.lua | 4 ++++ .../qbx_vehiclekeys/client/client.lua | 4 ++++ .../qs-vehiclekeys/client/client.lua | 4 ++++ .../vehicleKey/t1ger_keys/client/client.lua | 6 +++++- .../wasabi_carlock/client/client.lua | 4 ++++ modules/weather/_default/client.lua | 4 ++++ modules/weather/cd_easytime/client.lua | 4 ++++ .../weather/qb-weathersync/client/client.lua | 4 ++++ .../renewed-weathersync/client/client.lua | 4 ++++ 142 files changed, 784 insertions(+), 25 deletions(-) diff --git a/modules/banking/_default/server.lua b/modules/banking/_default/server.lua index 4f17414..54f4ae2 100644 --- a/modules/banking/_default/server.lua +++ b/modules/banking/_default/server.lua @@ -7,6 +7,12 @@ Banking.GetManagmentName = function() return 'default' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'default' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/fd_banking/server.lua b/modules/banking/fd_banking/server.lua index ad74b7b..29f9135 100644 --- a/modules/banking/fd_banking/server.lua +++ b/modules/banking/fd_banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'fd_banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'fd_banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/kartik-banking/server.lua b/modules/banking/kartik-banking/server.lua index 078f7d1..f19e7e6 100644 --- a/modules/banking/kartik-banking/server.lua +++ b/modules/banking/kartik-banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'kartik-banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'kartik-banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/okokBanking/server.lua b/modules/banking/okokBanking/server.lua index 33bf69d..734d496 100644 --- a/modules/banking/okokBanking/server.lua +++ b/modules/banking/okokBanking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'okokBanking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'okokBanking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/qb-banking/server.lua b/modules/banking/qb-banking/server.lua index e275daa..554eaef 100644 --- a/modules/banking/qb-banking/server.lua +++ b/modules/banking/qb-banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'qb-banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'qb-banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/renewed-banking/server.lua b/modules/banking/renewed-banking/server.lua index 4ae9c21..924c392 100644 --- a/modules/banking/renewed-banking/server.lua +++ b/modules/banking/renewed-banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'Renewed-Banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'Renewed-Banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/tgg-banking/server.lua b/modules/banking/tgg-banking/server.lua index fc276e7..ec09c69 100644 --- a/modules/banking/tgg-banking/server.lua +++ b/modules/banking/tgg-banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'tgg-banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'tgg-banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/tgiann-bank/server.lua b/modules/banking/tgiann-bank/server.lua index 082ee73..9e90902 100644 --- a/modules/banking/tgiann-bank/server.lua +++ b/modules/banking/tgiann-bank/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'tgiann-bank' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'tgiann-bank' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/banking/wasabi_banking/server.lua b/modules/banking/wasabi_banking/server.lua index 5d6cea6..15c9d77 100644 --- a/modules/banking/wasabi_banking/server.lua +++ b/modules/banking/wasabi_banking/server.lua @@ -10,6 +10,12 @@ Banking.GetManagmentName = function() return 'wasabi_banking' end +---This will get the name of the in use resource. +---@return string +Banking.GetResourceName = function() + return 'wasabi_banking' +end + ---This will return a number ---@param account string ---@return number diff --git a/modules/clothing/_default/client.lua b/modules/clothing/_default/client.lua index 47f0380..7183d2d 100644 --- a/modules/clothing/_default/client.lua +++ b/modules/clothing/_default/client.lua @@ -16,6 +16,13 @@ function Clothing.IsMale() return false end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'default' +end + ---Get the skin data of a ped ---@param entity number ---@return table diff --git a/modules/clothing/_default/server.lua b/modules/clothing/_default/server.lua index 312df50..c368691 100644 --- a/modules/clothing/_default/server.lua +++ b/modules/clothing/_default/server.lua @@ -9,6 +9,12 @@ function Clothing.IsMale(src) return GetEntityModel(ped) == `mp_m_freemode_01` end +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'default' +end + function Clothing.GetAppearance(src) return Callback.Trigger('community_bridge:cb:GetAppearance', src) end diff --git a/modules/clothing/esx_skin/client.lua b/modules/clothing/esx_skin/client.lua index bfc6326..d5e4592 100644 --- a/modules/clothing/esx_skin/client.lua +++ b/modules/clothing/esx_skin/client.lua @@ -6,3 +6,9 @@ Clothing = Clothing or {} function Clothing.OpenMenu() TriggerEvent('esx_skin:openMenu', function() end, function() end, true) end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'esx_skin' +end \ No newline at end of file diff --git a/modules/clothing/esx_skin/server.lua b/modules/clothing/esx_skin/server.lua index 9a8bfcf..a96ef52 100644 --- a/modules/clothing/esx_skin/server.lua +++ b/modules/clothing/esx_skin/server.lua @@ -35,6 +35,12 @@ function Clothing.GetFullAppearanceData(src) return Clothing.Players[citId] end +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'esx_skin' +end + ---Retrieves a player's converted appearance data for easy use across modules ---@param src number The server ID of the player ---@param fullData boolean Optional - If true, returns the full data object including skin and model diff --git a/modules/clothing/fivem-appearance/client.lua b/modules/clothing/fivem-appearance/client.lua index 8030831..add4d6c 100644 --- a/modules/clothing/fivem-appearance/client.lua +++ b/modules/clothing/fivem-appearance/client.lua @@ -6,3 +6,9 @@ Clothing = Clothing or {} function Clothing.OpenMenu() TriggerEvent('qb-clothing:client:openMenu') end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'fivem-appearance' +end diff --git a/modules/clothing/fivem-appearance/server.lua b/modules/clothing/fivem-appearance/server.lua index 34ce624..c57ef48 100644 --- a/modules/clothing/fivem-appearance/server.lua +++ b/modules/clothing/fivem-appearance/server.lua @@ -44,6 +44,12 @@ function Clothing.GetFullAppearanceData(src) return Clothing.Players[citId] end +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'fivem-appearance' +end + --- Retrieves a player's converted appearance data for easy use across modules ---@param src number The server ID of the player ---@param fullData boolean Optional - If true, returns the full data object including skin and model diff --git a/modules/clothing/illenium-appearance/client.lua b/modules/clothing/illenium-appearance/client.lua index adadeeb..5c49c5d 100644 --- a/modules/clothing/illenium-appearance/client.lua +++ b/modules/clothing/illenium-appearance/client.lua @@ -6,3 +6,9 @@ Clothing = Clothing or {} function Clothing.OpenMenu() TriggerEvent('qb-clothing:client:openMenu') end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'illenium-appearance' +end \ No newline at end of file diff --git a/modules/clothing/illenium-appearance/server.lua b/modules/clothing/illenium-appearance/server.lua index c65879d..492840e 100644 --- a/modules/clothing/illenium-appearance/server.lua +++ b/modules/clothing/illenium-appearance/server.lua @@ -35,6 +35,12 @@ function Clothing.GetFullAppearanceData(src) return Clothing.Players[citId] end +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'illenium-appearance' +end + --- Retrieves a player's converted appearance data for easy use across modules ---@param src number The server ID of the player ---@param fullData boolean Optional - If true, returns the full data object including skin and model diff --git a/modules/clothing/qb-clothing/client.lua b/modules/clothing/qb-clothing/client.lua index cae21e0..3b7cb4d 100644 --- a/modules/clothing/qb-clothing/client.lua +++ b/modules/clothing/qb-clothing/client.lua @@ -6,3 +6,9 @@ Clothing = Clothing or {} function Clothing.OpenMenu() TriggerEvent('qb-clothing:client:openMenu') end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'qb-clothing' +end \ No newline at end of file diff --git a/modules/clothing/qb-clothing/server.lua b/modules/clothing/qb-clothing/server.lua index 9f3113c..05fca20 100644 --- a/modules/clothing/qb-clothing/server.lua +++ b/modules/clothing/qb-clothing/server.lua @@ -38,6 +38,12 @@ function Clothing.GetFullAppearanceData(src) return Clothing.Players[citId] end +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'qb-clothing' +end + --- Retrieves a player's converted appearance data for easy use across modules ---@param src number The server ID of the player ---@param fullData boolean Optional - If true, returns the full data object including skin and model diff --git a/modules/clothing/rcore_clothing/client.lua b/modules/clothing/rcore_clothing/client.lua index 11486f6..fee5fb9 100644 --- a/modules/clothing/rcore_clothing/client.lua +++ b/modules/clothing/rcore_clothing/client.lua @@ -4,4 +4,10 @@ Clothing = Clothing or {} function Clothing.OpenMenu() TriggerEvent('qb-clothing:client:openMenu') +end + +---This will get the name of the in use resource. +---@return string +Clothing.GetResourceName = function() + return 'rcore_clothing' end \ No newline at end of file diff --git a/modules/dispatch/_default/client/client.lua b/modules/dispatch/_default/client/client.lua index 15bccc0..8eeb384 100644 --- a/modules/dispatch/_default/client/client.lua +++ b/modules/dispatch/_default/client/client.lua @@ -30,4 +30,10 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert) Bridge.Utility.RemoveBlip(blip) end) +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'default' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/_default/server/server.lua b/modules/dispatch/_default/server/server.lua index 039944b..e2cb3bf 100644 --- a/modules/dispatch/_default/server/server.lua +++ b/modules/dispatch/_default/server/server.lua @@ -10,4 +10,10 @@ RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data) end end) +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'default' +end + return Dispatch diff --git a/modules/dispatch/bub-mdt/client/client.lua b/modules/dispatch/bub-mdt/client/client.lua index 8bdedda..4b88b42 100644 --- a/modules/dispatch/bub-mdt/client/client.lua +++ b/modules/dispatch/bub-mdt/client/client.lua @@ -16,4 +16,10 @@ Dispatch.SendAlert = function(data) exports["bub-mdt"]:CustomAlert(alertData) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'bub-mdt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/bub-mdt/server/server.lua b/modules/dispatch/bub-mdt/server/server.lua index a95dfde..f7809e8 100644 --- a/modules/dispatch/bub-mdt/server/server.lua +++ b/modules/dispatch/bub-mdt/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('bub-mdt') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'bub-mdt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/cd_dispatch/client/client.lua b/modules/dispatch/cd_dispatch/client/client.lua index 799b1fe..abc85a9 100644 --- a/modules/dispatch/cd_dispatch/client/client.lua +++ b/modules/dispatch/cd_dispatch/client/client.lua @@ -24,4 +24,10 @@ Dispatch.SendAlert = function(data) }) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'cd_dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/cd_dispatch/server/server.lua b/modules/dispatch/cd_dispatch/server/server.lua index 856546e..97773e6 100644 --- a/modules/dispatch/cd_dispatch/server/server.lua +++ b/modules/dispatch/cd_dispatch/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('cd_dispatch') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'cd_dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/kartik-mdt/client/client.lua b/modules/dispatch/kartik-mdt/client/client.lua index 596aa93..3950531 100644 --- a/modules/dispatch/kartik-mdt/client/client.lua +++ b/modules/dispatch/kartik-mdt/client/client.lua @@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data) exports['kartik-mdt']:CustomAlert(alertOptions) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'kartik-mdt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/kartik-mdt/server/server.lua b/modules/dispatch/kartik-mdt/server/server.lua index 9567f5d..ef8f0d6 100644 --- a/modules/dispatch/kartik-mdt/server/server.lua +++ b/modules/dispatch/kartik-mdt/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('kartik-mdt') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'kartik-mdt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/lb-tablet/client/client.lua b/modules/dispatch/lb-tablet/client/client.lua index c8aa413..23114d7 100644 --- a/modules/dispatch/lb-tablet/client/client.lua +++ b/modules/dispatch/lb-tablet/client/client.lua @@ -40,4 +40,10 @@ Dispatch.SendAlert = function(data) TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'lb-tablet' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/lb-tablet/server/server.lua b/modules/dispatch/lb-tablet/server/server.lua index e23d4b4..460f33f 100644 --- a/modules/dispatch/lb-tablet/server/server.lua +++ b/modules/dispatch/lb-tablet/server/server.lua @@ -5,4 +5,10 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data) exports["lb-tablet"]:AddDispatch(data) -- this has a return value but we dont really have a use for it atm. end) +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'lb-tablet' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/linden_outlawalert/client/client.lua b/modules/dispatch/linden_outlawalert/client/client.lua index c783e98..6543e66 100644 --- a/modules/dispatch/linden_outlawalert/client/client.lua +++ b/modules/dispatch/linden_outlawalert/client/client.lua @@ -19,4 +19,10 @@ Dispatch.SendAlert = function(data) }) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'linden_outlawalert' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/linden_outlawalert/server/server.lua b/modules/dispatch/linden_outlawalert/server/server.lua index d8d9fd6..4657722 100644 --- a/modules/dispatch/linden_outlawalert/server/server.lua +++ b/modules/dispatch/linden_outlawalert/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('linden_outlawalert') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'linden_outlawalert' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/origen_police/server/server.lua b/modules/dispatch/origen_police/server/server.lua index d3ed01e..4cd83f4 100644 --- a/modules/dispatch/origen_police/server/server.lua +++ b/modules/dispatch/origen_police/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('origen_police') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'origen_police' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/piotreq_gpt/client/client.lua b/modules/dispatch/piotreq_gpt/client/client.lua index c0bc509..b5fcef1 100644 --- a/modules/dispatch/piotreq_gpt/client/client.lua +++ b/modules/dispatch/piotreq_gpt/client/client.lua @@ -7,4 +7,10 @@ Dispatch.SendAlert = function(data) TriggerServerEvent('community_bridge:Server:piotreq_gpt', data) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'piotreq_gpt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/piotreq_gpt/server/server.lua b/modules/dispatch/piotreq_gpt/server/server.lua index 3c8f4ad..c3d8645 100644 --- a/modules/dispatch/piotreq_gpt/server/server.lua +++ b/modules/dispatch/piotreq_gpt/server/server.lua @@ -36,4 +36,10 @@ RegisterNetEvent('community_bridge:Server:piotreq_gpt', function(data) Dispatch.SendAlert(src, data) end) +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'piotreq_gpt' +end + return Dispatch diff --git a/modules/dispatch/ps-dispatch/client/client.lua b/modules/dispatch/ps-dispatch/client/client.lua index 142bc21..1c66d2e 100644 --- a/modules/dispatch/ps-dispatch/client/client.lua +++ b/modules/dispatch/ps-dispatch/client/client.lua @@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data) exports["ps-dispatch"]:CustomAlert(alertData) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'ps-dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/ps-dispatch/server/server.lua b/modules/dispatch/ps-dispatch/server/server.lua index b60c698..62ae3c2 100644 --- a/modules/dispatch/ps-dispatch/server/server.lua +++ b/modules/dispatch/ps-dispatch/server/server.lua @@ -2,4 +2,10 @@ if GetResourceState('ps-dispatch') == 'missing' then return end if GetResourceState('lb-tablet') == 'started' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'ps-dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/qs_dispatch/client/client.lua b/modules/dispatch/qs_dispatch/client/client.lua index 3762ddc..e84d3c7 100644 --- a/modules/dispatch/qs_dispatch/client/client.lua +++ b/modules/dispatch/qs_dispatch/client/client.lua @@ -38,4 +38,11 @@ Dispatch.SendAlert = function(data) end) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'qs-dispatch' +end + + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/qs_dispatch/server/server.lua b/modules/dispatch/qs_dispatch/server/server.lua index ae08560..8bb7316 100644 --- a/modules/dispatch/qs_dispatch/server/server.lua +++ b/modules/dispatch/qs_dispatch/server/server.lua @@ -1,4 +1,11 @@ if GetResourceState('qs-dispatch') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'qs-dispatch' +end + + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/redutzu-mdt/client/client.lua b/modules/dispatch/redutzu-mdt/client/client.lua index 8b0ef79..c803a77 100644 --- a/modules/dispatch/redutzu-mdt/client/client.lua +++ b/modules/dispatch/redutzu-mdt/client/client.lua @@ -14,4 +14,11 @@ Dispatch.SendAlert = function(data) TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'redutzu-mdt' +end + + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/redutzu-mdt/server/server.lua b/modules/dispatch/redutzu-mdt/server/server.lua index c1c0ac0..a872c4c 100644 --- a/modules/dispatch/redutzu-mdt/server/server.lua +++ b/modules/dispatch/redutzu-mdt/server/server.lua @@ -11,4 +11,10 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data) }) end) +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'redutzu-mdt' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/tk_dispatch/client/client.lua b/modules/dispatch/tk_dispatch/client/client.lua index 61de466..f7c0740 100644 --- a/modules/dispatch/tk_dispatch/client/client.lua +++ b/modules/dispatch/tk_dispatch/client/client.lua @@ -20,4 +20,10 @@ Dispatch.SendAlert = function(data) }) end +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'tk_dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/dispatch/tk_dispatch/server/server.lua b/modules/dispatch/tk_dispatch/server/server.lua index aeeb8dc..33e3867 100644 --- a/modules/dispatch/tk_dispatch/server/server.lua +++ b/modules/dispatch/tk_dispatch/server/server.lua @@ -1,4 +1,10 @@ if GetResourceState('tk_dispatch') == 'missing' then return end Dispatch = Dispatch or {} +---This will get the name of the in use resource. +---@return string +Dispatch.GetResourceName = function() + return 'tk_dispatch' +end + return Dispatch \ No newline at end of file diff --git a/modules/doorlock/_default/server.lua b/modules/doorlock/_default/server.lua index 882615b..6d7369a 100644 --- a/modules/doorlock/_default/server.lua +++ b/modules/doorlock/_default/server.lua @@ -10,4 +10,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle) return true end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'default' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/doors_creator/client.lua b/modules/doorlock/doors_creator/client.lua index d4da080..eea726c 100644 --- a/modules/doorlock/doors_creator/client.lua +++ b/modules/doorlock/doors_creator/client.lua @@ -9,4 +9,10 @@ Doorlock.GetClosestDoor = function() return exports["doors_creator"]:getClosestActiveDoor() end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'doors_creator' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/doors_creator/server.lua b/modules/doorlock/doors_creator/server.lua index 89223e8..7594105 100644 --- a/modules/doorlock/doors_creator/server.lua +++ b/modules/doorlock/doors_creator/server.lua @@ -18,4 +18,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle) return true end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'doors_creator' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/ox_doorlock/client.lua b/modules/doorlock/ox_doorlock/client.lua index fc35fa0..4fdc35d 100644 --- a/modules/doorlock/ox_doorlock/client.lua +++ b/modules/doorlock/ox_doorlock/client.lua @@ -11,4 +11,10 @@ Doorlock.GetClosestDoor = function() return tostring(doorData.id) or nil end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'ox_doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/ox_doorlock/server.lua b/modules/doorlock/ox_doorlock/server.lua index b7f8461..4c86f85 100644 --- a/modules/doorlock/ox_doorlock/server.lua +++ b/modules/doorlock/ox_doorlock/server.lua @@ -20,4 +20,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle) return true end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'ox_doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/qb-doorlock/client.lua b/modules/doorlock/qb-doorlock/client.lua index a7356db..f7ea9fe 100644 --- a/modules/doorlock/qb-doorlock/client.lua +++ b/modules/doorlock/qb-doorlock/client.lua @@ -23,4 +23,10 @@ Doorlock.GetClosestDoor = function() return door end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'qb-doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/qb-doorlock/server.lua b/modules/doorlock/qb-doorlock/server.lua index a88a9b9..9b2f123 100644 --- a/modules/doorlock/qb-doorlock/server.lua +++ b/modules/doorlock/qb-doorlock/server.lua @@ -12,4 +12,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle) return true end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'qb-doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/rcore_doorlock/client.lua b/modules/doorlock/rcore_doorlock/client.lua index 5c9cd6c..4a61f89 100644 --- a/modules/doorlock/rcore_doorlock/client.lua +++ b/modules/doorlock/rcore_doorlock/client.lua @@ -21,4 +21,10 @@ Doorlock.GetClosestDoor = function() return door end +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'rcore_doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/doorlock/rcore_doorlock/server.lua b/modules/doorlock/rcore_doorlock/server.lua index 176e23e..f4ef635 100644 --- a/modules/doorlock/rcore_doorlock/server.lua +++ b/modules/doorlock/rcore_doorlock/server.lua @@ -16,4 +16,11 @@ Doorlock.ToggleDoorLock = function(doorID, toggle) end return true end + +---This will get the name of the in use resource. +---@return string +Doorlock.GetResourceName = function() + return 'rcore_doorlock' +end + return Doorlock \ No newline at end of file diff --git a/modules/framework/_default/client.lua b/modules/framework/_default/client.lua index 0f6cbb0..77042d7 100644 --- a/modules/framework/_default/client.lua +++ b/modules/framework/_default/client.lua @@ -8,6 +8,12 @@ AddStateBagChangeHandler('jobcounts', 'global', function(bagName, key, value) currentJobCounts = value end) +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'default' +end + ---This is an internal function that will be used to retrieve job counts later. ---@param jobName string ---@return number diff --git a/modules/framework/_default/server.lua b/modules/framework/_default/server.lua index 40161ff..6e675f2 100644 --- a/modules/framework/_default/server.lua +++ b/modules/framework/_default/server.lua @@ -7,6 +7,12 @@ local globalState = GlobalState globalState.jobcounts = {} +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'default' +end + ---This is an internal function that will be used to retrieve job counts later. ---@param jobName string ---@return number diff --git a/modules/framework/es_extended/client.lua b/modules/framework/es_extended/client.lua index e8f1d34..c363a45 100644 --- a/modules/framework/es_extended/client.lua +++ b/modules/framework/es_extended/client.lua @@ -22,6 +22,12 @@ Framework.GetFrameworkName = function() return 'es_extended' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'es_extended' +end + --- @description This will return true if the player is loaded, false otherwise. --- This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function --- @return boolean diff --git a/modules/framework/es_extended/server.lua b/modules/framework/es_extended/server.lua index e1abfc0..80243a0 100644 --- a/modules/framework/es_extended/server.lua +++ b/modules/framework/es_extended/server.lua @@ -16,6 +16,12 @@ Framework.GetFrameworkName = function() return 'es_extended' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'es_extended' +end + --- @description This is an internal function, its here to attempt to emulate qbs shared items mainly Framework.ItemList = function() if cachedItemList then return cachedItemList end diff --git a/modules/framework/qb-core/client.lua b/modules/framework/qb-core/client.lua index b85410b..21b5dac 100644 --- a/modules/framework/qb-core/client.lua +++ b/modules/framework/qb-core/client.lua @@ -14,6 +14,12 @@ Framework.GetFrameworkName = function() return 'qb-core' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'qb-core' +end + ---This will return true if the player is loaded, false otherwise. ---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function. ---@return boolean diff --git a/modules/framework/qb-core/server.lua b/modules/framework/qb-core/server.lua index f346988..765855d 100644 --- a/modules/framework/qb-core/server.lua +++ b/modules/framework/qb-core/server.lua @@ -14,6 +14,12 @@ Framework.GetFrameworkName = function() return 'qb-core' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'qb-core' +end + ---This will return if the player is an admin in the framework. ---@param src any ---@return boolean diff --git a/modules/framework/qbx_core/client.lua b/modules/framework/qbx_core/client.lua index 5f90b59..59c4dbd 100644 --- a/modules/framework/qbx_core/client.lua +++ b/modules/framework/qbx_core/client.lua @@ -11,6 +11,12 @@ Framework.GetFrameworkName = function() return 'qbx_core' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'qbx_core' +end + ---This will return true if the player is loaded, false otherwise. ---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function. ---@return boolean diff --git a/modules/framework/qbx_core/server.lua b/modules/framework/qbx_core/server.lua index e20c2c5..bf29bfe 100644 --- a/modules/framework/qbx_core/server.lua +++ b/modules/framework/qbx_core/server.lua @@ -11,6 +11,12 @@ Framework.GetFrameworkName = function() return 'qbx_core' end +---This will get the name of the in use resource. +---@return string +Framework.GetResourceName = function() + return 'qbx_core' +end + ---This will return if the player is an admin in the framework. ---@param src any ---@return boolean diff --git a/modules/fuel/_default/client.lua b/modules/fuel/_default/client.lua index 8430733..53748be 100644 --- a/modules/fuel/_default/client.lua +++ b/modules/fuel/_default/client.lua @@ -8,6 +8,7 @@ Fuel = Fuel or {} Fuel.GetResourceName = function() return 'default' end + ---Returns the current fuel level of a vehicle. ---@param vehicle number The vehicle entity handle. ---@return number The vehicle fuel level. diff --git a/modules/helptext/_default/client.lua b/modules/helptext/_default/client.lua index 8494c66..0d1d546 100644 --- a/modules/helptext/_default/client.lua +++ b/modules/helptext/_default/client.lua @@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(message, _position) return Framework.ShowHelpText(message, _position) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return "default" +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/_default/server.lua b/modules/helptext/_default/server.lua index fe80525..4f795d1 100644 --- a/modules/helptext/_default/server.lua +++ b/modules/helptext/_default/server.lua @@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(src, message, position) TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return "default" +end + ---This will hide the help text message on the screen for the specified player ---@param src number HelpText.HideHelpText = function(src) diff --git a/modules/helptext/cd_drawtextui/client.lua b/modules/helptext/cd_drawtextui/client.lua index d257822..0622925 100644 --- a/modules/helptext/cd_drawtextui/client.lua +++ b/modules/helptext/cd_drawtextui/client.lua @@ -13,6 +13,12 @@ HelpText.ShowHelpText = function(message, _position) return TriggerEvent('cd_drawtextui:ShowUI', 'show', message) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/jg-textui/client.lua b/modules/helptext/jg-textui/client.lua index bceec6d..8e38246 100644 --- a/modules/helptext/jg-textui/client.lua +++ b/modules/helptext/jg-textui/client.lua @@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position) return exports['jg-textui']:DrawText(message) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/lab-HintUI/client.lua b/modules/helptext/lab-HintUI/client.lua index f72fdd9..033fffa 100644 --- a/modules/helptext/lab-HintUI/client.lua +++ b/modules/helptext/lab-HintUI/client.lua @@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position) return exports['lab-HintUI']:Show(message, "Hint Text") end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/lation_ui/client.lua b/modules/helptext/lation_ui/client.lua index 2fd5f4b..42f9341 100644 --- a/modules/helptext/lation_ui/client.lua +++ b/modules/helptext/lation_ui/client.lua @@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, position) return exports.lation_ui:showText({description = tostring(message), position = position or 'right-center'}) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/okokTextUI/client.lua b/modules/helptext/okokTextUI/client.lua index 7ad8a0e..c5fcef3 100644 --- a/modules/helptext/okokTextUI/client.lua +++ b/modules/helptext/okokTextUI/client.lua @@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position) return exports['okokTextUI']:Open(message, 'darkblue', _position, false) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/helptext/ox_lib/client.lua b/modules/helptext/ox_lib/client.lua index 4a3837a..a02a914 100644 --- a/modules/helptext/ox_lib/client.lua +++ b/modules/helptext/ox_lib/client.lua @@ -14,6 +14,12 @@ HelpText.ShowHelpText = function(message, position) }) end +---This will get the name of the in use resource. +---@return string +HelpText.GetResourceName = function() + return resourceName +end + ---This will hide the help text message on the screen ---@return nil HelpText.HideHelpText = function() diff --git a/modules/housing/_default/client.lua b/modules/housing/_default/client.lua index ae77287..ea7d77b 100644 --- a/modules/housing/_default/client.lua +++ b/modules/housing/_default/client.lua @@ -1,3 +1,9 @@ Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "default" +end + return Housing \ No newline at end of file diff --git a/modules/housing/_default/server.lua b/modules/housing/_default/server.lua index 4566d0a..5d1815c 100644 --- a/modules/housing/_default/server.lua +++ b/modules/housing/_default/server.lua @@ -11,4 +11,10 @@ RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, inside TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "default" +end + return Housing \ No newline at end of file diff --git a/modules/housing/bcs-housing/client.lua b/modules/housing/bcs-housing/client.lua index ab420d2..fea2049 100644 --- a/modules/housing/bcs-housing/client.lua +++ b/modules/housing/bcs-housing/client.lua @@ -10,4 +10,10 @@ RegisterNetEvent("Housing:client:DeleteFurnitures", function() TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "bcs-housing" +end + return Housing \ No newline at end of file diff --git a/modules/housing/bcs-housing/server.lua b/modules/housing/bcs-housing/server.lua index 3745ce9..cc42a1f 100644 --- a/modules/housing/bcs-housing/server.lua +++ b/modules/housing/bcs-housing/server.lua @@ -2,4 +2,10 @@ if GetResourceState('bcs-housing') == 'missing' then return end Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "bcs-housing" +end + return Housing \ No newline at end of file diff --git a/modules/housing/esx_property/client.lua b/modules/housing/esx_property/client.lua index 50ca417..91b2b94 100644 --- a/modules/housing/esx_property/client.lua +++ b/modules/housing/esx_property/client.lua @@ -2,4 +2,10 @@ if GetResourceState('esx_property') == 'missing' then return end Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "esx_property" +end + return Housing \ No newline at end of file diff --git a/modules/housing/esx_property/server.lua b/modules/housing/esx_property/server.lua index 420a2f0..2e0fe58 100644 --- a/modules/housing/esx_property/server.lua +++ b/modules/housing/esx_property/server.lua @@ -12,4 +12,10 @@ RegisterNetEvent('esx_property:leave', function(insideId) TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "esx_property" +end + return Housing \ No newline at end of file diff --git a/modules/housing/ps-housing/client.lua b/modules/housing/ps-housing/client.lua index a174c0f..aca6b40 100644 --- a/modules/housing/ps-housing/client.lua +++ b/modules/housing/ps-housing/client.lua @@ -2,4 +2,10 @@ if GetResourceState('ps-housing') == 'missing' then return end Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "ps-housing" +end + return Housing \ No newline at end of file diff --git a/modules/housing/ps-housing/server.lua b/modules/housing/ps-housing/server.lua index e4640d2..8e4ced9 100644 --- a/modules/housing/ps-housing/server.lua +++ b/modules/housing/ps-housing/server.lua @@ -12,4 +12,10 @@ RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId) TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "ps-housing" +end + return Housing \ No newline at end of file diff --git a/modules/housing/qb-appartments/client.lua b/modules/housing/qb-appartments/client.lua index 415e0da..16a8d9b 100644 --- a/modules/housing/qb-appartments/client.lua +++ b/modules/housing/qb-appartments/client.lua @@ -2,4 +2,10 @@ if GetResourceState('qb-appartments') == 'missing' then return end Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "qb-appartments" +end + return Housing \ No newline at end of file diff --git a/modules/housing/qb-appartments/server.lua b/modules/housing/qb-appartments/server.lua index 9b92c1f..a187785 100644 --- a/modules/housing/qb-appartments/server.lua +++ b/modules/housing/qb-appartments/server.lua @@ -8,4 +8,11 @@ RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId, TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "qb-appartments" +end + + return Housing \ No newline at end of file diff --git a/modules/housing/qb-houses/client.lua b/modules/housing/qb-houses/client.lua index 1733b77..f7749ac 100644 --- a/modules/housing/qb-houses/client.lua +++ b/modules/housing/qb-houses/client.lua @@ -2,4 +2,10 @@ if GetResourceState('qb-houses') == 'missing' then return end Housing = Housing or {} +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "qb-houses" +end + return Housing \ No newline at end of file diff --git a/modules/housing/qb-houses/server.lua b/modules/housing/qb-houses/server.lua index f2d4265..baeff73 100644 --- a/modules/housing/qb-houses/server.lua +++ b/modules/housing/qb-houses/server.lua @@ -8,4 +8,10 @@ RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool) TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId) end) +---This will get the name of the in use resource. +---@return string +Housing.GetResourceName = function() + return "qb-houses" +end + return Housing \ No newline at end of file diff --git a/modules/inventory/_default/client.lua b/modules/inventory/_default/client.lua index 3d989f7..4ff2b77 100644 --- a/modules/inventory/_default/client.lua +++ b/modules/inventory/_default/client.lua @@ -8,6 +8,12 @@ Inventory.GetItemInfo = function(item) return Framework.GetItemInfo(item) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "default" +end + ---Will return boolean if the player has the item. ---@param item string ---@return boolean diff --git a/modules/inventory/_default/server.lua b/modules/inventory/_default/server.lua index ccc4df1..7075b84 100644 --- a/modules/inventory/_default/server.lua +++ b/modules/inventory/_default/server.lua @@ -13,6 +13,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return Framework.AddItem(src, item, count, slot, metadata) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "default" +end + + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/codem-inventory/client.lua b/modules/inventory/codem-inventory/client.lua index 7c34524..2fe7e66 100644 --- a/modules/inventory/codem-inventory/client.lua +++ b/modules/inventory/codem-inventory/client.lua @@ -21,6 +21,13 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "codem-inventory" +end + + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/codem-inventory/server.lua b/modules/inventory/codem-inventory/server.lua index 2927e6e..a0b3e0a 100644 --- a/modules/inventory/codem-inventory/server.lua +++ b/modules/inventory/codem-inventory/server.lua @@ -18,6 +18,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return codem:AddItem(src, item, count, slot, metadata) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "codem-inventory" +end + + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/core_inventory/client.lua b/modules/inventory/core_inventory/client.lua index da9124d..943491b 100644 --- a/modules/inventory/core_inventory/client.lua +++ b/modules/inventory/core_inventory/client.lua @@ -24,6 +24,13 @@ Inventory.GetItemInfo = function(item) return {name = dataRepack.name, label = dataRepack.label, stack = dataRepack.stack, weight = dataRepack.weight, description = dataRepack.description, image = Inventory.GetImagePath(dataRepack.name) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "core_inventory" +end + + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/core_inventory/server.lua b/modules/inventory/core_inventory/server.lua index e2a4771..e2dc3ad 100644 --- a/modules/inventory/core_inventory/server.lua +++ b/modules/inventory/core_inventory/server.lua @@ -18,6 +18,14 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return core:addItem(src, item, count, metadata) end + +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "core_inventory" +end + + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/jpr-inventory/client.lua b/modules/inventory/jpr-inventory/client.lua index e2448dc..489878c 100644 --- a/modules/inventory/jpr-inventory/client.lua +++ b/modules/inventory/jpr-inventory/client.lua @@ -20,6 +20,14 @@ 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 diff --git a/modules/inventory/jpr-inventory/server.lua b/modules/inventory/jpr-inventory/server.lua index e0f31ff..6e0eb82 100644 --- a/modules/inventory/jpr-inventory/server.lua +++ b/modules/inventory/jpr-inventory/server.lua @@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return exports['jpr-inventory']:AddItem(src, item, count, slot, metadata, 'community_bridge Item added') end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "jpr-inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/origen_inventory/client.lua b/modules/inventory/origen_inventory/client.lua index 77d7adb..eccc81b 100644 --- a/modules/inventory/origen_inventory/client.lua +++ b/modules/inventory/origen_inventory/client.lua @@ -19,6 +19,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "origen_inventory" +end + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/origen_inventory/server.lua b/modules/inventory/origen_inventory/server.lua index 784cb9b..55e3f2d 100644 --- a/modules/inventory/origen_inventory/server.lua +++ b/modules/inventory/origen_inventory/server.lua @@ -18,6 +18,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return origin:AddItem(src, item, count, metadata, slot, true) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "origen_inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/ox_inventory/client.lua b/modules/inventory/ox_inventory/client.lua index 9a676e8..f8623ba 100644 --- a/modules/inventory/ox_inventory/client.lua +++ b/modules/inventory/ox_inventory/client.lua @@ -23,6 +23,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "ox_inventory" +end + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/ox_inventory/server.lua b/modules/inventory/ox_inventory/server.lua index 66aeaaa..ff5e4a4 100644 --- a/modules/inventory/ox_inventory/server.lua +++ b/modules/inventory/ox_inventory/server.lua @@ -22,6 +22,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return ox_inventory:AddItem(src, item, count, metadata) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "ox_inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/ps-inventory/client.lua b/modules/inventory/ps-inventory/client.lua index 86b4e55..69ced4f 100644 --- a/modules/inventory/ps-inventory/client.lua +++ b/modules/inventory/ps-inventory/client.lua @@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "ps-inventory" +end + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/ps-inventory/server.lua b/modules/inventory/ps-inventory/server.lua index 0b53263..53194e4 100644 --- a/modules/inventory/ps-inventory/server.lua +++ b/modules/inventory/ps-inventory/server.lua @@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return sloth:AddItem(src, item, count, slot, metadata, 'community_bridge') end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "ps-inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/qb-inventory/client.lua b/modules/inventory/qb-inventory/client.lua index b71db1a..195441e 100644 --- a/modules/inventory/qb-inventory/client.lua +++ b/modules/inventory/qb-inventory/client.lua @@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "qb-inventory" +end + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/qb-inventory/server.lua b/modules/inventory/qb-inventory/server.lua index eb92534..9abd7cb 100644 --- a/modules/inventory/qb-inventory/server.lua +++ b/modules/inventory/qb-inventory/server.lua @@ -27,6 +27,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return qbInventory:AddItem(src, item, count, slot, metadata, 'community_bridge') end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "qb-inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/qs-inventory/client.lua b/modules/inventory/qs-inventory/client.lua index 31775f2..35d60e8 100644 --- a/modules/inventory/qs-inventory/client.lua +++ b/modules/inventory/qs-inventory/client.lua @@ -22,6 +22,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "qs-inventory" +end + ---This will return the entire items table from the inventory. ---@return table Inventory.Items = function() diff --git a/modules/inventory/qs-inventory/server.lua b/modules/inventory/qs-inventory/server.lua index 52a542c..0593105 100644 --- a/modules/inventory/qs-inventory/server.lua +++ b/modules/inventory/qs-inventory/server.lua @@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return quasar:AddItem(src, item, count, slot, metadata) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "qs-inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/inventory/tgiann-inventory/client.lua b/modules/inventory/tgiann-inventory/client.lua index ad4c874..aa62432 100644 --- a/modules/inventory/tgiann-inventory/client.lua +++ b/modules/inventory/tgiann-inventory/client.lua @@ -21,6 +21,12 @@ Inventory.GetItemInfo = function(item) } end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "tgiann-inventory" +end + ---Will return boolean if the player has the item. ---@param item string ---@return boolean diff --git a/modules/inventory/tgiann-inventory/server.lua b/modules/inventory/tgiann-inventory/server.lua index 4393d58..92f7a59 100644 --- a/modules/inventory/tgiann-inventory/server.lua +++ b/modules/inventory/tgiann-inventory/server.lua @@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata) return tgiann:AddItem(src, item, count, slot, metadata, false) end +---This will get the name of the in use resource. +---@return string +Inventory.GetResourceName = function() + return "tgiann-inventory" +end + ---This will remove an item, and return true or false based on success ---@param src number ---@param item string diff --git a/modules/notify/_default/client.lua b/modules/notify/_default/client.lua index 7aef40d..3dc7dc5 100644 --- a/modules/notify/_default/client.lua +++ b/modules/notify/_default/client.lua @@ -2,7 +2,7 @@ Notify = Notify or {} Notify.GetResourceName = function() - return "none" + return "default" end ---This will send a notify message of the type and time passed diff --git a/modules/notify/_default/server.lua b/modules/notify/_default/server.lua index fab0ddc..ddceb67 100644 --- a/modules/notify/_default/server.lua +++ b/modules/notify/_default/server.lua @@ -10,6 +10,10 @@ Notify.SendNotify = function(src, message, _type, time) TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time) end +Notify.GetResourceName = function() + return "default" +end + ---------[[Depricated Stuff Below, please adjust to the HelpText module instead]]-------- ---Depricated -- This will show a help text message to the specified player at the screen position passed ---@param src number diff --git a/modules/phone/_default/client.lua b/modules/phone/_default/client.lua index bd3d2fe..529df0c 100644 --- a/modules/phone/_default/client.lua +++ b/modules/phone/_default/client.lua @@ -7,6 +7,10 @@ Phone.GetPhoneName = function() return 'default' end +Phone.GetResourceName = function() + return "default" +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/_default/server.lua b/modules/phone/_default/server.lua index 01bb488..c945be4 100644 --- a/modules/phone/_default/server.lua +++ b/modules/phone/_default/server.lua @@ -7,6 +7,10 @@ Phone.GetPhoneName = function() return 'default' end +Phone.GetResourceName = function() + return "default" +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/phone/gksphone/client.lua b/modules/phone/gksphone/client.lua index f253028..31cc403 100644 --- a/modules/phone/gksphone/client.lua +++ b/modules/phone/gksphone/client.lua @@ -10,6 +10,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/gksphone/server.lua b/modules/phone/gksphone/server.lua index 4efc6db..0ac2f56 100644 --- a/modules/phone/gksphone/server.lua +++ b/modules/phone/gksphone/server.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/phone/lb-phone/client.lua b/modules/phone/lb-phone/client.lua index 6a0cccc..7d4c369 100644 --- a/modules/phone/lb-phone/client.lua +++ b/modules/phone/lb-phone/client.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/lb-phone/server.lua b/modules/phone/lb-phone/server.lua index 0bedbe6..2b03f4a 100644 --- a/modules/phone/lb-phone/server.lua +++ b/modules/phone/lb-phone/server.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/phone/okokPhone/client.lua b/modules/phone/okokPhone/client.lua index e4231ea..c0545e8 100644 --- a/modules/phone/okokPhone/client.lua +++ b/modules/phone/okokPhone/client.lua @@ -10,6 +10,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/okokPhone/server.lua b/modules/phone/okokPhone/server.lua index ce59722..af9b01d 100644 --- a/modules/phone/okokPhone/server.lua +++ b/modules/phone/okokPhone/server.lua @@ -25,6 +25,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/phone/qs-smartphone/client.lua b/modules/phone/qs-smartphone/client.lua index 72b1cda..44dd051 100644 --- a/modules/phone/qs-smartphone/client.lua +++ b/modules/phone/qs-smartphone/client.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/qs-smartphone/server.lua b/modules/phone/qs-smartphone/server.lua index fbcc6c9..f845a6d 100644 --- a/modules/phone/qs-smartphone/server.lua +++ b/modules/phone/qs-smartphone/server.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/phone/yseries/client.lua b/modules/phone/yseries/client.lua index a9ddf47..1d92151 100644 --- a/modules/phone/yseries/client.lua +++ b/modules/phone/yseries/client.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will send an email to the passed email address with the title and message. ---@param email string ---@param title string diff --git a/modules/phone/yseries/server.lua b/modules/phone/yseries/server.lua index d460be6..d8bee21 100644 --- a/modules/phone/yseries/server.lua +++ b/modules/phone/yseries/server.lua @@ -9,6 +9,10 @@ Phone.GetPhoneName = function() return resourceName end +Phone.GetResourceName = function() + return resourceName +end + ---This will get the phone number of the passed source. ---@param src number ---@return number|boolean diff --git a/modules/progressbar/lation_ui/client.lua b/modules/progressbar/lation_ui/client.lua index 34ac775..2d08e3a 100644 --- a/modules/progressbar/lation_ui/client.lua +++ b/modules/progressbar/lation_ui/client.lua @@ -103,4 +103,9 @@ function ProgressBar.Open(options, cb, isQBInput) return success end + +ProgressBar.GetResourceName = function() + return "lation_ui" +end + return ProgressBar \ No newline at end of file diff --git a/modules/progressbar/ox_lib/client.lua b/modules/progressbar/ox_lib/client.lua index 36b6b77..96ba26b 100644 --- a/modules/progressbar/ox_lib/client.lua +++ b/modules/progressbar/ox_lib/client.lua @@ -64,4 +64,8 @@ function ProgressBar.Open(options, cb, isQBInput) return success end +ProgressBar.GetResourceName = function() + return "ox_lib" +end + return ProgressBar \ No newline at end of file diff --git a/modules/progressbar/qb-progressbar/client.lua b/modules/progressbar/qb-progressbar/client.lua index 67095a0..94a7a10 100644 --- a/modules/progressbar/qb-progressbar/client.lua +++ b/modules/progressbar/qb-progressbar/client.lua @@ -63,4 +63,8 @@ function ProgressBar.Open(options, cb, qbFormat) return Citizen.Await(prom) end +ProgressBar.GetResourceName = function() + return "progressbar" +end + return ProgressBar \ No newline at end of file diff --git a/modules/skills/_default/client.lua b/modules/skills/_default/client.lua index 7d3cd9e..3acf9ae 100644 --- a/modules/skills/_default/client.lua +++ b/modules/skills/_default/client.lua @@ -1,12 +1,6 @@ ---@diagnostic disable: duplicate-set-field Skills = Skills or {} ----This will get the name of the Skills system being being used. ----@return string -Skills.GetResourceName = function() - return "community_bridge" -end - XP_CACHE = {} -- Calculate XP required for a level using RuneScape algorithm (with caching) @@ -68,6 +62,9 @@ Skills.GetXP = function(skillName) return plyrSkills[skillName].currentXP or 1 end +Skills.GetResourceName = function() + return "default" +end -- RegisterCommand("getfishingLevel", function(source, args) -- local level = Skills.GetSkillLevel("fishing") diff --git a/modules/skills/_default/server.lua b/modules/skills/_default/server.lua index afe9cd5..7ec6d55 100644 --- a/modules/skills/_default/server.lua +++ b/modules/skills/_default/server.lua @@ -141,9 +141,8 @@ Skills.SetXP = function(src, skillName, xp) return true end --- Get resource name Skills.GetResourceName = function() - return "community_bridge" + return "default" end -- Debug Commands diff --git a/modules/target/_default/client.lua b/modules/target/_default/client.lua index 33416e7..ef3f214 100644 --- a/modules/target/_default/client.lua +++ b/modules/target/_default/client.lua @@ -175,4 +175,8 @@ Target.RemoveZone = function(name) warnUser() end +Target.GetResourceName = function() + return "default" +end + return Target \ No newline at end of file diff --git a/modules/target/ox_target/client.lua b/modules/target/ox_target/client.lua index 129af5b..f98c26b 100644 --- a/modules/target/ox_target/client.lua +++ b/modules/target/ox_target/client.lua @@ -205,4 +205,8 @@ AddEventHandler('onResourceStop', function(resource) targetZones = {} end) +Target.GetResourceName = function() + return "ox_target" +end + return Target \ No newline at end of file diff --git a/modules/target/qb-target/client.lua b/modules/target/qb-target/client.lua index c1a4b63..6dc9adb 100644 --- a/modules/target/qb-target/client.lua +++ b/modules/target/qb-target/client.lua @@ -230,4 +230,8 @@ AddEventHandler('onResourceStop', function(resource) targetZones = {} end) +Target.GetResourceName = function() + return "qb-target" +end + return Target \ No newline at end of file diff --git a/modules/target/sleepless_interact/client.lua b/modules/target/sleepless_interact/client.lua index c9909da..194e308 100644 --- a/modules/target/sleepless_interact/client.lua +++ b/modules/target/sleepless_interact/client.lua @@ -188,4 +188,8 @@ AddEventHandler('onResourceStop', function(resource) targetZones = {} end) +Target.GetResourceName = function() + return "sleepless_interact" +end + return Target \ No newline at end of file diff --git a/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua b/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua index 9426293..2861a9d 100644 --- a/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua +++ b/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua @@ -11,11 +11,8 @@ VehicleKey = VehicleKey or {} VehicleKey.GiveKeys = function(vehicle, plate) assert(vehicle, "vehicle is nil") assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - + if not plate then plate = GetVehicleNumberPlateText(vehicle) end + TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate) end @@ -28,12 +25,14 @@ end VehicleKey.RemoveKeys = function(vehicle, plate) assert(vehicle, "vehicle is nil") assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - + + if not plate then plate = GetVehicleNumberPlateText(vehicle) end + TriggerServerEvent('F_RealCarKeysSystem:removeVehicleKeysByPlate', plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua b/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua index bfd4a99..6f6b8fa 100644 --- a/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua +++ b/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua b/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua index 69653bc..77d75ec 100644 --- a/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua +++ b/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) return exports['Renewed-Vehiclekeys']:removeKey(plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/_default/client/client.lua b/modules/vehicleKey/_default/client/client.lua index 6d66938..7ab8d33 100644 --- a/modules/vehicleKey/_default/client/client.lua +++ b/modules/vehicleKey/_default/client/client.lua @@ -6,7 +6,7 @@ VehicleKey = VehicleKey or {} ---@param plate? string The plate of the vehicle. ---@return nil VehicleKey.GiveKeys = function(vehicle, plate) - Prints.Info("There is no compatible vehicle key resource.") + print("There is no compatible vehicle key resource.") end ---Removes the keys of the specified vehicle from the player (self). @@ -14,7 +14,11 @@ end ---@param plate? string The plate of the vehicle. ---@return nil VehicleKey.RemoveKeys = function(vehicle, plate) - Prints.Info("There is no compatible vehicle key resource.") + print("There is no compatible vehicle key resource.") +end + +VehicleKey.GetResourceName = function() + return "default" end return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/cd_garage/client/client.lua b/modules/vehicleKey/cd_garage/client/client.lua index d45dc23..56f5313 100644 --- a/modules/vehicleKey/cd_garage/client/client.lua +++ b/modules/vehicleKey/cd_garage/client/client.lua @@ -11,7 +11,7 @@ VehicleKey = VehicleKey or {} VehicleKey.GiveKeys = function(vehicle, plate) assert(vehicle, "vehicle is nil") assert(DoesEntityExist(vehicle), "vehicle does not exist") - + if not plate then plate = GetVehicleNumberPlateText(vehicle) end @@ -24,7 +24,11 @@ end ---@param plate? string The plate of the vehicle. ---@return nil VehicleKey.RemoveKeys = function(vehicle, plate) - Prints.Info("cd_garage doesnt support removing keys.") + print("cd_garage doesnt support removing keys.") +end + +VehicleKey.GetResourceName = function() + return resourceName end return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/jacksam/client.lua b/modules/vehicleKey/jacksam/client.lua index d47b413..f1f1b32 100644 --- a/modules/vehicleKey/jacksam/client.lua +++ b/modules/vehicleKey/jacksam/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) TriggerServerEvent("vehicles_keys:selfRemoveKeys", plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/mVehicle/client/client.lua b/modules/vehicleKey/mVehicle/client/client.lua index 5216aac..e89acc9 100644 --- a/modules/vehicleKey/mVehicle/client/client.lua +++ b/modules/vehicleKey/mVehicle/client/client.lua @@ -20,7 +20,11 @@ end ---@param plate? string The plate of the vehicle. ---@return nil VehicleKey.RemoveKeys = function(vehicle, plate) - Prints.Info("mVehicle doesnt support removing keys.") + print("mVehicle doesnt support removing keys.") +end + +VehicleKey.GetResourceName = function() + return resourceName end return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/mk_vehiclekeys/client/client.lua b/modules/vehicleKey/mk_vehiclekeys/client/client.lua index cf2c004..e70ebca 100644 --- a/modules/vehicleKey/mk_vehiclekeys/client/client.lua +++ b/modules/vehicleKey/mk_vehiclekeys/client/client.lua @@ -26,4 +26,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) exports["mk_vehiclekeys"]:RemoveKey(vehicle) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/okokGarage/client/client.lua b/modules/vehicleKey/okokGarage/client/client.lua index fee3fa4..84e09d8 100644 --- a/modules/vehicleKey/okokGarage/client/client.lua +++ b/modules/vehicleKey/okokGarage/client/client.lua @@ -35,4 +35,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) TriggerServerEvent("okokGarage:RemoveKeys", plate, source) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qb-vehiclekeys/client/client.lua b/modules/vehicleKey/qb-vehiclekeys/client/client.lua index bc01002..52f2fbd 100644 --- a/modules/vehicleKey/qb-vehiclekeys/client/client.lua +++ b/modules/vehicleKey/qb-vehiclekeys/client/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qbx_vehiclekeys/client/client.lua b/modules/vehicleKey/qbx_vehiclekeys/client/client.lua index 69c4ac9..2735ab8 100644 --- a/modules/vehicleKey/qbx_vehiclekeys/client/client.lua +++ b/modules/vehicleKey/qbx_vehiclekeys/client/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qs-vehiclekeys/client/client.lua b/modules/vehicleKey/qs-vehiclekeys/client/client.lua index 06bdfdd..36708d8 100644 --- a/modules/vehicleKey/qs-vehiclekeys/client/client.lua +++ b/modules/vehicleKey/qs-vehiclekeys/client/client.lua @@ -36,4 +36,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) return exports['qs-vehiclekeys']:RemoveKeys(plate, model) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/t1ger_keys/client/client.lua b/modules/vehicleKey/t1ger_keys/client/client.lua index e996071..7ad97c5 100644 --- a/modules/vehicleKey/t1ger_keys/client/client.lua +++ b/modules/vehicleKey/t1ger_keys/client/client.lua @@ -25,7 +25,11 @@ end ---@param plate? string The plate of the vehicle. ---@return nil VehicleKey.RemoveKeys = function(vehicle, plate) - Prints.Info("t1ger_keys doesnt support removing keys.") + print("t1ger_keys doesnt support removing keys.") +end + +VehicleKey.GetResourceName = function() + return resourceName end return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/wasabi_carlock/client/client.lua b/modules/vehicleKey/wasabi_carlock/client/client.lua index 328699d..6b3a49c 100644 --- a/modules/vehicleKey/wasabi_carlock/client/client.lua +++ b/modules/vehicleKey/wasabi_carlock/client/client.lua @@ -34,4 +34,8 @@ VehicleKey.RemoveKeys = function(vehicle, plate) exports.wasabi_carlock:RemoveKey(plate) end +VehicleKey.GetResourceName = function() + return resourceName +end + return VehicleKey \ No newline at end of file diff --git a/modules/weather/_default/client.lua b/modules/weather/_default/client.lua index 7625ab6..7fc0ed6 100644 --- a/modules/weather/_default/client.lua +++ b/modules/weather/_default/client.lua @@ -8,4 +8,8 @@ Weather.ToggleSync = function(toggle) end +Weather.GetResourceName = function() + return "default" +end + return Weather \ No newline at end of file diff --git a/modules/weather/cd_easytime/client.lua b/modules/weather/cd_easytime/client.lua index 210ca56..1b6cf2e 100644 --- a/modules/weather/cd_easytime/client.lua +++ b/modules/weather/cd_easytime/client.lua @@ -9,4 +9,8 @@ Weather.ToggleSync = function(toggle) TriggerEvent('cd_easytime:PauseSync', toggle) end +Weather.GetResourceName = function() + return "cd_easytime" +end + return Weather \ No newline at end of file diff --git a/modules/weather/qb-weathersync/client/client.lua b/modules/weather/qb-weathersync/client/client.lua index 548bc23..bbcaa24 100644 --- a/modules/weather/qb-weathersync/client/client.lua +++ b/modules/weather/qb-weathersync/client/client.lua @@ -13,4 +13,8 @@ Weather.ToggleSync = function(toggle) end end +Weather.GetResourceName = function() + return "qb-weathersync" +end + return Weather \ No newline at end of file diff --git a/modules/weather/renewed-weathersync/client/client.lua b/modules/weather/renewed-weathersync/client/client.lua index 9d4d460..a6ae316 100644 --- a/modules/weather/renewed-weathersync/client/client.lua +++ b/modules/weather/renewed-weathersync/client/client.lua @@ -9,4 +9,8 @@ Weather.ToggleSync = function(toggle) LocalPlayer.state.syncWeather = toggle end +Weather.GetResourceName = function() + return "renewed-weathersync" +end + return Weather \ No newline at end of file