Hello my code isĀ
const int ElementAmount = 10;
const int ArrSize = ElementAmount * 4 + 2;
Entity *peds = new Entity[ArrSize];
if (toggle)
{
peds[0] = ElementAmount;
Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_INDEX(), 1);
int PedFound = PED::GET_PED_NEARBY_PEDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::GET_PLAYER_INDEX()), peds, -1);
for (int i = 0; i < PedFound; i++)
{
int OffsetID = i * 2 + 2;
int bone = ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME(