getPlayerAppearance
Retrieves active saved skin configuration table from database table kc_player_skins for a source ID or Citizen ID.
💡 Syntax
local skinData = exports['kartik-clothing']:getPlayerAppearance(sourceOrId)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
sourceOrId | number | string | No | Server source ID or Citizen ID string. |
📤 Returns
| Type | Description |
|---|---|
table | nil | Decoded appearance table or nil if no skin is found. |
💻 Example
local src = source
local skin = exports['kartik-clothing']:getPlayerAppearance(src)
if skin then
print("Player Model:", skin.model)
end