ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getPedBoneName

Function

getPedBoneName

ClientPedsTrilogy Hub only

Returns the name of the game skeleton bone with the given index (e.g. "Head", "R_Hand"). The index is the bone's position in the Definitive Edition skeleton (0 to getPedBoneCount() - 1), not a number from getBoneIDs.

Syntax

string getPedBoneName(int index)

Arguments

indexint
Game bone index, from 0.

Returns

The bone name, or false/nil for a wrong index.

Example

outputChatBox(tostring(getPedBoneName(0)))

See also