ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedVariant

Function

getPedVariant

ServerPedsTrilogy Hub only

Returns a pedestrian's current appearance variant: the clothing number and the skin number (both 0-3). Returns 0, 0 when no variant was set.

Syntax

int, int getPedVariant(ped ped)

Arguments

pedped
An NPC or a player.

Returns

Clothing variant and skin variant.

Example

local clothes, skin = getPedVariant(npc)

See also