Skip to content

Clothing and society accounts

These entries are in editable/framework.lua; restoreAppearance is in editable/client.lua.

EntryUse it whenReceivesReturns
openAppearanceYour clothing script is not illenium-appearance.srctrue if the menu opened
societyBalanceYour banking script is not detected.kind ('job'/'gang'), nameBalance, or false if no account
editable/framework.lua
EditableServer.societyBalance = {
custom = true,
fn = function(kind, name)
return tonumber(exports['my_banking']:GetAccountBalance(name)) or false
end,
}

When staff change a player’s ped model (player card → Ped model), Reset to default loads the player’s saved look again. Fiveops does this by itself with illenium-appearance, qb-clothing and esx_skin + skinchanger. If none of them runs, or the script refuses (for example while the player is in a vehicle), Fiveops puts back the look it saved on the player’s game before the first change: model, clothes, face, hair and makeup. Tattoos come back only through the clothing script.

Use restoreAppearance in editable/client.lua when your clothing script is another one. It runs on the player’s game and returns true when your script was asked to load the look.

editable/client.lua
EditableClient.restoreAppearance = {
custom = true,
fn = function()
TriggerEvent('my_clothing:client:reloadSkin')
return true
end,
}