Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 416 Bytes

GetPedHairColor.md

File metadata and controls

26 lines (20 loc) · 416 Bytes
ns apiset
CFX
client

GET_PED_HAIR_COLOR

int GET_PED_HAIR_COLOR(Ped ped);

A getter for _SET_PED_HAIR_COLOR. Returns -1 if fails to get.

Examples

local primaryColour = GetPedHairColor(PlayerPedId())
if primaryColour == 18 then
  print("You have red hair!")
end

Parameters

  • ped: The target ped

Return value

Returns ped's primary hair colour.