Rcore Clothing Docs Extra Quality -
-- List all saved outfits (callback) exports["rcore_clothing"]:getOutfits(function(outfits) for name, data in pairs(outfits) do print(name) end end) | Slot | Component ID | |------|--------------| | Head (hats/masks) | 0 | | Glasses | 1 | | Ears (accessories) | 2 | | Upper body | 3 | | Legs | 4 | | Bags | 5 | | Shoes | 6 | | Accessories (neck) | 7 | | Undershirt | 8 | | Body armor / vest | 9 | | Decals | 10 | 5. Troubleshooting | Issue | Likely Fix | |-------|-------------| | Item not showing | Check drawable/texture IDs exist for the model/gender | | Wrong gender | Set gender = "both" or duplicate entry with correct IDs | | Clothing resets on respawn | Re-equip using OnPlayerSpawn event | | Prop not attaching | Set prop = true and provide correct attach bone | 6. Quick Debug -- Print current component IDs and drawables for i = 0, 12 do local drawable = GetPedDrawableVariation(PlayerPedId(), i) local texture = GetPedTextureVariation(PlayerPedId(), i) print(string.format("Slot %d: drawable %d, texture %d", i, drawable, texture)) end
-- Get currently equipped items exports["rcore_clothing"]:getEquipped() -- Save current outfit TriggerServerEvent("rcore_clothing:saveOutfit", "work_outfit") -- Load saved outfit TriggerEvent("rcore_clothing:loadOutfit", "work_outfit") rcore clothing docs
-- Equip by item name TriggerEvent("rcore_clothing:equip", "police_vest") -- Unequip specific slot TriggerEvent("rcore_clothing:unequip", 9) -- component ID 12 do local drawable = GetPedDrawableVariation(PlayerPedId()