Credits: -> Destroyer_MMXV
Code:
int componentID, drawableID,textureID, paletteID, Comps[] = { 0, 1, 2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };
char * Components[] = { "Hats", "Glasses", "Ears", "Face", "Hea", "Hair", "Torso", "Legs", "Hands", "Feets", "Eyes", "Accessories", "Tasks", "Textures", "Torso 2" };
void Component_Changer()
{
uint Ped = PLAYER::PLAYER_PED_ID();
addTitle("Component Changer", 3);
addCharFunction(Components, &componentID, 0, 14);
addIntOption("Model Variation", &drawableID, 0, PED::GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS(Ped, Comps[componentID]));
addIntOption("Texture Variation", &textureID, 0, PED::GET_NUMBER_OF_PED_TEXTURE_VARIATIONS(Ped, Comps[componentID], PED::GET_PED_DRAWABLE_VARIATION(Ped, Comps[componentID])));
switch (getOption())
{
case 1:
drawableID = PED::GET_PED_DRAWABLE_VARIATION(Ped, Comps[componentID]);
textureID = PED::GET_PED_TEXTURE_VARIATION(Ped, Comps[componentID]);
break;
case 2:
ResetAppearance();
if (componentID <= 2)
PED::SET_PED_PROP_INDEX(Ped, Comps[componentID], drawableID - 1, textureID, 1);
else if (componentID > 2)
PED::SET_PED_COMPONENT_VARIATION(Ped, Comps[componentID], drawableID, textureID, 1);
break;
case 3:
ResetAppearance();
if (componentID <= 2)
PED::SET_PED_PROP_INDEX(Ped, Comps[componentID], drawableID - 1, textureID, 1);
else if (componentID > 2)
PED::SET_PED_COMPONENT_VARIATION(Ped, Comps[componentID], drawableID, textureID, 1);
break;
}
}
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.