Clothes
The following scripts are compatible by default:
qb-clothing (and any other script that uses its same event names)
illenium-appearance
rcore clothing
tgiann clothing
esx_skin and skinchager (who uses this in 2025?)
Other Clothing Scripts
To make your own clothing script compatible do the following:
Go to config/clothing.lua > add your resource name in the compatible table.
Go to client/editable/clothing.lua > line 18 add a new line like this right before the one from illenium-appearance:
if Config.ClothingScript == "your_resource_name" then
dbug("your_resource_name")
-- Add your setPed, setClothing or however your clothing script export is named
-- Set the clothes to the designed ped and trigger a return at the end
-- Look at the other scripts examples
return
end
Go to server/editable/_callbacks.lua > line 32 add your clothing script export to retrieve the player clothes using identifier:
-- Retrieve character skin based on identifier
lib.callback.register("av_multicharacter:getSkin", function(source,identifier)
dbug("getSkin(identifier)", identifier)
if Config.ClothingScript == "rcore_clothing" then
return exports["rcore_clothing"]:getSkinByIdentifier(identifier)
end
if Config.ClothingScript == "tgiann-clothing" then
local result = MySQL.single.await('SELECT `model`, `skin` FROM `tgiann_skin` WHERE `citizenid` = ? LIMIT 1', {identifier})
if result and result['model'] and result['skin'] then
return {model = result['model'], skin = result['skin']}
else
return false
end
end
if Config.ClothingScript == "your_resource_name" then
-- Retrieve your character model and skin
-- return a table containing model and skin
-- return {model, skin}
end
local skin = GetPlayerSkin(identifier) or false
return skin
end)
I don't know how X clothing script works, I don't own every script in Fivem, please avoid asking how to make X clothing script compatible with mine.
Last updated