Kartik Scripts

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

ParameterTypeOptionalDescription
pednumberYesPed entity handle. Defaults to local player ped (cache.ped or PlayerPedId()).

📤 Returns

TypeDescription
table | nilComplete 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)
end

On this page