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

Function

getPedBoneCount

ClientPedsTrilogy Hub only

Returns the number of skeleton bones a ped has in this version of the game (the Definitive Edition skeleton has more than the classic one). Returns 0 when the game has not shown any ped yet. Together with getPedBoneName it lets you list every bone.

Syntax

int getPedBoneCount()

Returns

Number of bones (0 when the skeleton is not known yet).

Example

for i = 0, getPedBoneCount() - 1 do
    outputConsole(i .. ": " .. tostring(getPedBoneName(i)))
end

See also