- Documentation
- Server functions
- getPedVariant
Function
getPedVariant
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)