setPedAppearance
Applies a complete appearance table to a ped entity without persisting changes to the database.
💡 Syntax
local success = exports['kartik-clothing']:setPedAppearance(ped, appearance)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
ped | number | No | Target ped entity handle. |
appearance | table | No | Full appearance table data. |
📤 Returns
| Type | Description |
|---|---|
boolean | true if appearance was successfully applied, false otherwise. |
💻 Example
local targetPed = PlayerPedId()
local ok = exports['kartik-clothing']:setPedAppearance(targetPed, appearanceData)getPedAppearance
Retrieves the complete appearance table (model, components, props, head blend, face features, head overlays, hair, tattoos) for a ped entity.
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).