Clothing
PC-Multicharacter supports multiple clothing systems. The detection and configuration is handled in bridge.lua.
Supported Clothing Systems
illenium-appearance (auto-detected)
qb-clothing (default for QBCore)
qb-clothes (alternative QBCore)
esx_skin (default for ESX)
Configuration Locations
bridge.lua (lines 126-138):
-- Clothing events
Bridge.ClothingEvents = {}
if GetResourceState('illenium-appearance') == 'started' then
-- illenium-appearance uses same events for both frameworks
Bridge.ClothingEvents.createFirst = Bridge.Framework == 'ESX' and 'esx_skin:openSaveableMenu' or 'qb-clothing:client:openMenu'
Bridge.ClothingEvents.openMenu = Bridge.Framework == 'ESX' and 'esx_skin:openSaveableMenu' or 'qb-clothing:client:openMenu'
Bridge.ClothingEvents.loadPlayerClothing = Bridge.Framework == 'ESX' and 'skinchanger:loadSkin' or 'qb-clothing:client:loadPlayerClothing'
else
-- Default clothing events
Bridge.ClothingEvents.createFirst = Bridge.Framework == 'ESX' and 'esx_skin:openSaveableMenu' or 'qb-clothes:client:CreateFirstCharacter'
Bridge.ClothingEvents.openMenu = Bridge.Framework == 'ESX' and 'esx_skin:openSaveableMenu' or 'qb-clothing:client:openMenu'
Bridge.ClothingEvents.loadPlayerClothing = Bridge.Framework == 'ESX' and 'esx_skin:loadSkin' or 'qb-clothing:client:loadPlayerClothing'
endAdding Custom Clothing System
To add a custom clothing system, modify the clothing events in bridge.lua:
Add detection (after line 128):
Modify ApplyClothing function (lines 141-285):
Update skin loading in server/main.lua (lines 529-540):
Last updated