Kartik Scripts

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

ParameterTypeOptionalDescription
sourceOrIdnumber | stringNoServer source ID or Citizen ID string.

📤 Returns

TypeDescription
table | nilDecoded 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

On this page