Kartik Scripts

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

ParameterTypeOptionalDescription
appearancetableNoFull appearance table data.

📤 Returns

TypeDescription
booleantrue 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

On this page