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

Function

getBoneIDs

ServerPedsTrilogy Hub only

Returns a list of every bone number the server understands (1-8, 21-26, 31-36, 41-44, 51-54). Useful for looping over bones or checking whether a number typed in a command is valid.

Syntax

table getBoneIDs()

Returns

A sorted table of bone numbers.

Example

for _, id in ipairs(getBoneIDs()) do
    outputServerLog(id .. " = " .. getBoneName(id))
end

See also