setPlayerAppearance
Applies an appearance configuration table to the local player ped and commits/persists the snapshot state to the server database table (kc_player_skins).
💡 Syntax
local success = exports['kartik-clothing']:setPlayerAppearance(appearance)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
appearance | table | No | Full appearance table data. |
📤 Returns
| Type | Description |
|---|---|
boolean | true if appearance was applied and committed, false otherwise. |
💻 Example
local ok = exports['kartik-clothing']:setPlayerAppearance(savedAppearance)
if ok then
print("Appearance updated and saved to database!")
end