getPedAppearance
Retrieves the complete appearance table (model, components, props, head blend, face features, head overlays, hair, tattoos) for a ped entity.
💡 Syntax
local appearance = exports['kartik-clothing']:getPedAppearance(ped)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
ped | number | Yes | Ped entity handle. Defaults to local player ped (cache.ped or PlayerPedId()). |
📤 Returns
| Type | Description |
|---|---|
table | nil | Complete appearance table containing model string, components list, props list, headBlend data, faceFeatures array, headOverlays dictionary, hair, eyeColor, and tattoos. |
💻 Example
local playerPed = PlayerPedId()
local appearanceData = exports['kartik-clothing']:getPedAppearance(playerPed)
if appearanceData then
print("Ped Model:", appearanceData.model)
print("Total Components:", #appearanceData.components)
endClient Exports
Client exports allow external resources to query ped appearance parameters, apply component variations, configure props, trigger customization UI menus, and interact with the character creator.
setPedAppearance
Applies a complete appearance table to a ped entity without persisting changes to the database.