From c582ce69e9f38d42095233f975672664dc16d1ee Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sun, 12 Oct 2025 21:52:12 -0400 Subject: [PATCH] Add check for 17mov_CharacterSystem resource Added a conditional check for the '17mov_CharacterSystem' resource in all clothing module scripts. This prevents the modules from loading if '17mov_CharacterSystem' is present, improving compatibility and avoiding conflicts. --- modules/clothing/esx_skin/client.lua | 1 + modules/clothing/esx_skin/server.lua | 1 + modules/clothing/esx_skin/shared.lua | 1 + modules/clothing/fivem-appearance/client.lua | 1 + modules/clothing/fivem-appearance/server.lua | 1 + modules/clothing/illenium-appearance/client.lua | 1 + modules/clothing/illenium-appearance/server.lua | 1 + modules/clothing/qb-clothing/client.lua | 1 + modules/clothing/qb-clothing/server.lua | 1 + modules/clothing/qb-clothing/shared.lua | 1 + modules/clothing/rcore_clothing/client.lua | 1 + 11 files changed, 11 insertions(+) diff --git a/modules/clothing/esx_skin/client.lua b/modules/clothing/esx_skin/client.lua index d5e4592..0ece696 100644 --- a/modules/clothing/esx_skin/client.lua +++ b/modules/clothing/esx_skin/client.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('esx_skin') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} function Clothing.OpenMenu() diff --git a/modules/clothing/esx_skin/server.lua b/modules/clothing/esx_skin/server.lua index a96ef52..cd223dd 100644 --- a/modules/clothing/esx_skin/server.lua +++ b/modules/clothing/esx_skin/server.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('esx_skin') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} Clothing.Players = {} diff --git a/modules/clothing/esx_skin/shared.lua b/modules/clothing/esx_skin/shared.lua index 53d5845..73c9054 100644 --- a/modules/clothing/esx_skin/shared.lua +++ b/modules/clothing/esx_skin/shared.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('esx_skin') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} diff --git a/modules/clothing/fivem-appearance/client.lua b/modules/clothing/fivem-appearance/client.lua index add4d6c..77d1bdf 100644 --- a/modules/clothing/fivem-appearance/client.lua +++ b/modules/clothing/fivem-appearance/client.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('fivem-appearance') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} function Clothing.OpenMenu() diff --git a/modules/clothing/fivem-appearance/server.lua b/modules/clothing/fivem-appearance/server.lua index c57ef48..a176e91 100644 --- a/modules/clothing/fivem-appearance/server.lua +++ b/modules/clothing/fivem-appearance/server.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('fivem-appearance') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} Clothing.Players = {} diff --git a/modules/clothing/illenium-appearance/client.lua b/modules/clothing/illenium-appearance/client.lua index 5c49c5d..59e515a 100644 --- a/modules/clothing/illenium-appearance/client.lua +++ b/modules/clothing/illenium-appearance/client.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('illenium-appearance') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} function Clothing.OpenMenu() diff --git a/modules/clothing/illenium-appearance/server.lua b/modules/clothing/illenium-appearance/server.lua index 492840e..def4aee 100644 --- a/modules/clothing/illenium-appearance/server.lua +++ b/modules/clothing/illenium-appearance/server.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('illenium-appearance') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} Clothing.Players = {} diff --git a/modules/clothing/qb-clothing/client.lua b/modules/clothing/qb-clothing/client.lua index 3b7cb4d..cfcbaea 100644 --- a/modules/clothing/qb-clothing/client.lua +++ b/modules/clothing/qb-clothing/client.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('qb-clothing') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} function Clothing.OpenMenu() diff --git a/modules/clothing/qb-clothing/server.lua b/modules/clothing/qb-clothing/server.lua index 05fca20..67c0672 100644 --- a/modules/clothing/qb-clothing/server.lua +++ b/modules/clothing/qb-clothing/server.lua @@ -1,6 +1,7 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('qb-clothing') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} Clothing.Players = {} diff --git a/modules/clothing/qb-clothing/shared.lua b/modules/clothing/qb-clothing/shared.lua index 394e0b3..3e338f2 100644 --- a/modules/clothing/qb-clothing/shared.lua +++ b/modules/clothing/qb-clothing/shared.lua @@ -2,6 +2,7 @@ if GetResourceState('qb-clothing') == 'missing' then return end if GetResourceState('rcore_clothing') ~= 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} diff --git a/modules/clothing/rcore_clothing/client.lua b/modules/clothing/rcore_clothing/client.lua index fee5fb9..c88a362 100644 --- a/modules/clothing/rcore_clothing/client.lua +++ b/modules/clothing/rcore_clothing/client.lua @@ -1,5 +1,6 @@ ---@diagnostic disable: duplicate-set-field if GetResourceState('rcore_clothing') == 'missing' then return end +if GetResourceState('17mov_CharacterSystem') ~= 'missing' then return end Clothing = Clothing or {} function Clothing.OpenMenu()