ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2618

Function #6 Sprx

by NoNameV2345 - 03-27-2018 - 09:10 PM
#1
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.
Reply
#2
Good stuff........
Reply
#3
(03-27-2018 - 09:10 PM)NoNameV2345 Wrote: Credits: -> Destroyer_MMXVstupiddddddddddddddd

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
Reply
#4
thank you so much
Reply

Users browsing: 3 Guest(s)