rcore_clothing partial support
This relys on the default server file to handle most, but we have opening menus and when rcore_clothing provides as qb/esx_skin this should resolve the errors if the framework didnt match the bridged option. Formatting fixed, debug commands disabled as this is for production.
This commit is contained in:
1 parent
a280606c3d
commit
c7d638cbfb
13 files changed
+124
-174
No files matched your search
@@ -1,5 +1,6 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('illenium-appearance') == 'missing' then return end
|
||||
if GetResourceState('rcore_clothing') ~= 'missing' then return end
|
||||
Clothing = Clothing or {}
|
||||
Clothing.Players = {}
|
||||
|
||||
@@ -161,35 +162,35 @@ end)
|
||||
RegisterCommand('clothing:debug', function(source, args, rawCommand)
|
||||
local src = source
|
||||
Clothing.SetAppearance(src, {
|
||||
components ={
|
||||
{component_id = 0, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 1, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 2, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 3, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 4, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 5, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 6, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 7, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 8, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 9, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 10, drawable = math.random(0, 50), texture = 0},
|
||||
{component_id = 11, drawable = math.random(0, 50), texture = 0},
|
||||
components = {
|
||||
{ component_id = 0, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 1, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 2, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 3, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 4, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 5, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 6, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 7, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 8, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 9, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 10, drawable = math.random(0, 50), texture = 0 },
|
||||
{ component_id = 11, drawable = math.random(0, 50), texture = 0 },
|
||||
},
|
||||
props = {
|
||||
{prop_id = 0, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 1, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 2, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 3, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 4, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 5, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 6, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 7, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 8, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 9, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 10, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 11, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 12, drawable = math.random(0, 50), texture = 0},
|
||||
{prop_id = 13, drawable = math.random(0, 50), texture = 0},
|
||||
{ prop_id = 0, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 1, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 2, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 3, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 4, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 5, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 6, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 7, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 8, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 9, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 10, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 11, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 12, drawable = math.random(0, 50), texture = 0 },
|
||||
{ prop_id = 13, drawable = math.random(0, 50), texture = 0 },
|
||||
}
|
||||
}, false, true)
|
||||
end, false)
|
||||
@@ -218,34 +219,34 @@ RegisterCommand('clothing:crowley', function(source, args, rawCommand)
|
||||
local src = source
|
||||
Clothing.SetAppearance(src, {
|
||||
components = {
|
||||
{drawable = 0, texture = 0, component_id = 0},
|
||||
{drawable = 0, texture = 0, component_id = 1},
|
||||
{drawable = 19, texture = 0, component_id = 2},
|
||||
{drawable = 6, texture = 0, component_id = 3},
|
||||
{drawable = 0, texture = 0, component_id = 4},
|
||||
{drawable = 0, texture = 0, component_id = 5},
|
||||
{drawable = 0, texture = 0, component_id = 6},
|
||||
{drawable = 0, texture = 0, component_id = 7},
|
||||
{drawable = 23, texture = 0, component_id = 8},
|
||||
{drawable = 0, texture = 0, component_id = 9},
|
||||
{drawable = 0, texture = 0, component_id = 10},
|
||||
{drawable = 4, texture = 2, component_id = 11}
|
||||
{ drawable = 0, texture = 0, component_id = 0 },
|
||||
{ drawable = 0, texture = 0, component_id = 1 },
|
||||
{ drawable = 19, texture = 0, component_id = 2 },
|
||||
{ drawable = 6, texture = 0, component_id = 3 },
|
||||
{ drawable = 0, texture = 0, component_id = 4 },
|
||||
{ drawable = 0, texture = 0, component_id = 5 },
|
||||
{ drawable = 0, texture = 0, component_id = 6 },
|
||||
{ drawable = 0, texture = 0, component_id = 7 },
|
||||
{ drawable = 23, texture = 0, component_id = 8 },
|
||||
{ drawable = 0, texture = 0, component_id = 9 },
|
||||
{ drawable = 0, texture = 0, component_id = 10 },
|
||||
{ drawable = 4, texture = 2, component_id = 11 }
|
||||
},
|
||||
props = {
|
||||
{drawable = 27, prop_id = 0, texture = 0},
|
||||
{drawable = 0, prop_id = 1, texture = 0},
|
||||
{drawable = 0, prop_id = 2, texture = 0},
|
||||
{drawable = 0, prop_id = 3, texture = 0},
|
||||
{drawable = 0, prop_id = 4, texture = 0},
|
||||
{drawable = 0, prop_id = 5, texture = 0},
|
||||
{drawable = 0, prop_id = 6, texture = 0},
|
||||
{drawable = 0, prop_id = 7, texture = 0},
|
||||
{drawable = 0, prop_id = 8, texture = 0},
|
||||
{drawable = 0, prop_id = 9, texture = 0},
|
||||
{drawable = 0, prop_id = 10, texture = 0},
|
||||
{drawable = 0, prop_id = 11, texture = 0},
|
||||
{drawable = 0, prop_id = 12, texture = 0},
|
||||
{drawable = 0, prop_id = 13, texture = 0}
|
||||
{ drawable = 27, prop_id = 0, texture = 0 },
|
||||
{ drawable = 0, prop_id = 1, texture = 0 },
|
||||
{ drawable = 0, prop_id = 2, texture = 0 },
|
||||
{ drawable = 0, prop_id = 3, texture = 0 },
|
||||
{ drawable = 0, prop_id = 4, texture = 0 },
|
||||
{ drawable = 0, prop_id = 5, texture = 0 },
|
||||
{ drawable = 0, prop_id = 6, texture = 0 },
|
||||
{ drawable = 0, prop_id = 7, texture = 0 },
|
||||
{ drawable = 0, prop_id = 8, texture = 0 },
|
||||
{ drawable = 0, prop_id = 9, texture = 0 },
|
||||
{ drawable = 0, prop_id = 10, texture = 0 },
|
||||
{ drawable = 0, prop_id = 11, texture = 0 },
|
||||
{ drawable = 0, prop_id = 12, texture = 0 },
|
||||
{ drawable = 0, prop_id = 13, texture = 0 }
|
||||
|
||||
}
|
||||
}, false, true)
|
||||
|
||||
Reference in new issue
Block a user