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.
This commit is contained in:
1 parent
91e295947b
commit
c582ce69e9
11 files changed
+11
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user