Client
Client-side events fired by RW Fashion.
rw_fashion:outfitApplied
Fires when the player leaves the store wearing an outfit they own, after the server has confirmed they own it. This is the moment to save their appearance — RW Fashion applies clothing with natives and doesn't save it for you.
AddEventHandler('rw_fashion:outfitApplied', function(outfitId, worn)
TriggerServerEvent('my_appearance:save', worn)
end)- outfitId:
string— the catalog id of the outfit they walked out in. - worn:
table— the slots read off the ped:
{
components = {
[11] = { drawable = 4, texture = 0 }, -- torso
[4] = { drawable = 10, texture = 2 }, -- legs
-- ...
},
props = {
[0] = { drawable = -1, texture = -1 }, -- hat (none)
-- ...
},
}Only the slots ticked under Catalog → Outfit slots in the editor are included.
It's a local client event (TriggerEvent), so listen with AddEventHandler in a client script.
The woreOut hook fires at the same moment with the same arguments. Use the event from other resources, and the hook from hooks/client.lua.
Don't save appearance on try-ons. Trying on an outfit doesn't fire this event, and neither does leaving in the clothes they arrived in — only walking out in an outfit the player owns does.