RedM Natives

GET_PED_BONE_INDEX

no bone = -1

Hash0x3F428D08BE5AAE31
Runtime nameGetPedBoneIndex
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3F428D08BE5AAE31

Signature

int GET_PED_BONE_INDEX(Ped ped, int boneId);

Parameters

NameTypeDescription
pedPed—
boneIdint—

Returns int

Description

no bone = -1

Usage

Lua
local retval = GetPedBoneIndex(ped, boneId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3F428D08BE5AAE31, ped, boneId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedBoneIndex(ped, boneId);

// by hash
const retval = Citizen.invokeNative('0x3F428D08BE5AAE31', ped, boneId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x3F428D08BE5AAE31, ped, boneId);

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.