setPedProps
Applies props (hats, glasses, ear items, watches, bracelets) to a ped entity.
💡 Syntax
local success = exports['kartik-clothing']:setPedProps(ped, props)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
ped | number | No | Target ped handle. |
props | table | No | Array 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
})