Kartik Scripts

setPedProps

Applies props (hats, glasses, ear items, watches, bracelets) to a ped entity.

💡 Syntax

local success = exports['kartik-clothing']:setPedProps(ped, props)

📥 Parameters

ParameterTypeOptionalDescription
pednumberNoTarget ped handle.
propstableNoArray of prop specifications { prop_id = number, drawable = number, texture = number }.

💻 Example

exports['kartik-clothing']:setPedProps(PlayerPedId(), {
    { prop_id = 0, drawable = 5, texture = 0 }, -- Hat
    { prop_id = 1, drawable = 2, texture = 0 }  -- Glasses
})

On this page