Amey.Banaye Posted July 15, 2015 Share Posted July 15, 2015 (edited) I wanted to change Ped's clothes to a certain outfit. So i did some research on it, and here's what i found out. First of let's look at function to change the clothes. void SET_PED_COMPONENT_VARIATION(Ped ped, int componentId, int drawableId, int textureId, int paletteId) Where Ped - is the ped you want to set the outfit. ComponentId - Is the ID of the part of the body. DrawableID - Is the ID of the cloth you want to set. TextureID - Is the ID of the variation of the cloth. (Variation in the sense of color) PalleteID - Can be set as 2 or you use (int GET_PED_PALETTE_VARIATION(Ped ped, int componentId)) ComponentID's 0 FACE1 BEARD2 HAIRCUT3 SHIRT4 PANTS5 Hands / Gloves6 SHOES7 Eyes8 Accessories9 Mission Items/Tasks10 Decals11 Collars and Inner Shirts TextureIds are defined as a...b..c..d So for ease use this a=0 b=1 c=2 d=3 e=4 f=5 g=6 h=7 i=8 j=9 k=10 l=11 m=12 n=13 o=14 p=15 q=16 r=17 s=18 t=19 u=20 v=21 w=22 x=23 y=24 z=25 Make a point that each ped has a different set of clothes variations which can be found at. Grand Theft Auto V\x64v.rpf\models\cdimages\ Now let's look at an example Let say we want to change the shirt of Michael. We can find the variations for Michael at Grand Theft Auto V\x64v.rpf\models\cdimages\streamedpeds_players.rpf\player_zero Now let's take a look at a Shirt Texture . uppr_diff_000_a Now this has 3 parts :- uppr_diff = Stands for Shirt/T Shirt 000 = Stands for the Shirt/T Shirt Texture or Type. a = Stands for the color variation. For setting this as a current shirt for Michael use SET_PED_COMPONENT_VARIATION(player, 3, 0, 0, 2) ; Now for setting Props. Props are Helmets, bluetooth earsets , sunglasses, headphones etc. For setting Props to Ped use this void SET_PED_PROP_INDEX(Ped ped, int componentId, int drawableId, int TextureId, int paletteId) Where Ped is the Ped you want to set prop for Component ID is the Part of the head. Drawable ID is the component you want to set (Sunglasses,Different types of helmet Helmets,etc) Texture ID is the variations for the component (Like color) PaletteID can be set as 2 or use (int GET_PED_PALETTE_VARIATION(Ped ped, int componentId)) Prop Component IDs 0 = Head Props 1 = Eye Props 2 = Ear Props Make a point that each ped has a different set of Prop variations which can be found at. Grand Theft Auto V\x64v.rpf\models\cdimages\streamedpedsprops.rpf Let's look at a helmet Prop . p_head_diff_000_e Now this has 3 parts :- head_diff = Stands for Props that can be wore as a hat or headphone.Basically on the head 000 = Stands for the Helmet/ Headphone Texture or Type. e = Stands for the color variation. For setting this Prop to ped use SET_PED_PROP_INDEX(player, 0, 0, 4,2); Hope This Helps! Edited July 15, 2015 by Amey.Banaye elsewhat, Alvarez, Bob_74 and 10 others 13 Link to comment Share on other sites More sharing options...
Prof_Farnsworth Posted July 23, 2015 Share Posted July 23, 2015 I think you explained this TOO well, which is why no has replied. I'll leave a huge thank you, since this will be very helpful in the future for me. frangershwing and Zerovv 2 Link to comment Share on other sites More sharing options...
GeorgeZhang Posted July 24, 2015 Share Posted July 24, 2015 Thanks man! this is awesome, really helped me a lot:) frangershwing 1 Link to comment Share on other sites More sharing options...
nordi Posted August 20, 2015 Share Posted August 20, 2015 rand Theft Auto4v.rpf\models\cdimage For setting this as a current shirt for Michael use SET_PED_COMPONENT_VARIATION(player, 3, 0, 0, 2) ; Now for setting Props. Props are Helmets, bluetooth earsets , sunglasses, headphones etc. For setting Props to Ped use this void SET_PED_PROP_INDEX(Ped ped, int componentId, int drawableId, int TextureId, int paletteId) Where Ped is the Ped you want to set prop for Component ID is the Part of the head. Drawable ID is the component you want to set (Sunglasses,Different types of helmet Helmets,etc) Texture ID is the variations for the component (Like color) PaletteID can be set as 2 or use (int GET_PED_PALETTE_VARIATION(Ped ped, int componentId)) Prop Component IDs 0 = Head Props 1 = Eye Props 2 = Ear Props Make a point that each ped has a different set of Prop variations which can be found at. Grand Theft Auto V\x64v.rpf\models\cdimages\streamedpedsprops.rpf Let's look at a helmet Prop . p_head_diff_000_e Now this has 3 parts :- head_diff = Stands for Props that can be wore as a hat or headphone.Basically on the head 000 = Stands for the Helmet/ Headphone Texture or Type. e = Stands for the color variation. For setting this Prop to ped use SET_PED_PROP_INDEX(player, 0, 0, 4,2); Hope This Helps! I added a helmet prop to Franklin, but I can't remove it for some reason ... the native REMOVE_PLAYER_HELMET do not work ... any idea ? Link to comment Share on other sites More sharing options...
Amey.Banaye Posted September 6, 2015 Author Share Posted September 6, 2015 rand Theft Auto4v.rpf\models\cdimage For setting this as a current shirt for Michael use SET_PED_COMPONENT_VARIATION(player, 3, 0, 0, 2) ; Now for setting Props. Props are Helmets, bluetooth earsets , sunglasses, headphones etc. For setting Props to Ped use this void SET_PED_PROP_INDEX(Ped ped, int componentId, int drawableId, int TextureId, int paletteId) Where Ped is the Ped you want to set prop for Component ID is the Part of the head. Drawable ID is the component you want to set (Sunglasses,Different types of helmet Helmets,etc) Texture ID is the variations for the component (Like color) PaletteID can be set as 2 or use (int GET_PED_PALETTE_VARIATION(Ped ped, int componentId)) Prop Component IDs 0 = Head Props 1 = Eye Props 2 = Ear Props Make a point that each ped has a different set of Prop variations which can be found at. Grand Theft Auto V\x64v.rpf\models\cdimages\streamedpedsprops.rpf Let's look at a helmet Prop . p_head_diff_000_e Now this has 3 parts :- head_diff = Stands for Props that can be wore as a hat or headphone.Basically on the head 000 = Stands for the Helmet/ Headphone Texture or Type. e = Stands for the color variation. For setting this Prop to ped use SET_PED_PROP_INDEX(player, 0, 0, 4,2); Hope This Helps! I added a helmet prop to Franklin, but I can't remove it for some reason ... the native REMOVE_PLAYER_HELMET do not work ... any idea ? rand Theft Auto4v.rpf\models\cdimage For setting this as a current shirt for Michael use SET_PED_COMPONENT_VARIATION(player, 3, 0, 0, 2) ; Now for setting Props. Props are Helmets, bluetooth earsets , sunglasses, headphones etc. For setting Props to Ped use this void SET_PED_PROP_INDEX(Ped ped, int componentId, int drawableId, int TextureId, int paletteId) Where Ped is the Ped you want to set prop for Component ID is the Part of the head. Drawable ID is the component you want to set (Sunglasses,Different types of helmet Helmets,etc) Texture ID is the variations for the component (Like color) PaletteID can be set as 2 or use (int GET_PED_PALETTE_VARIATION(Ped ped, int componentId)) Prop Component IDs 0 = Head Props 1 = Eye Props 2 = Ear Props Make a point that each ped has a different set of Prop variations which can be found at. Grand Theft Auto V\x64v.rpf\models\cdimages\streamedpedsprops.rpf Let's look at a helmet Prop . p_head_diff_000_e Now this has 3 parts :- head_diff = Stands for Props that can be wore as a hat or headphone.Basically on the head 000 = Stands for the Helmet/ Headphone Texture or Type. e = Stands for the color variation. For setting this Prop to ped use SET_PED_PROP_INDEX(player, 0, 0, 4,2); Hope This Helps! I added a helmet prop to Franklin, but I can't remove it for some reason ... the native REMOVE_PLAYER_HELMET do not work ... any idea ? I know its too late but have you tried ? void CLEAR_PED_PROP(Ped ped, int propId) void CLEAR_ALL_PED_PROPS(Ped ped) frangershwing 1 Link to comment Share on other sites More sharing options...
ghost30812 Posted March 24, 2016 Share Posted March 24, 2016 How do i set something like jbib_diff_000_b_uni ? (located in dlc folder mpvalentines2) (male section) I cant get it working :C BrownRecluse 1 Link to comment Share on other sites More sharing options...
WpgnGaming Posted July 14, 2017 Share Posted July 14, 2017 Am wondering if you can help me am trying to kit my police chars out with the correct gear but am having a little trouble getting the right numbers for the cloths below is the police chest with tie but am unable to work it out uppr_006_u_ydd or if you know the correct codes to kid my char out that be good ha can anyone help plz? using model: mp_m_freemode_01 SetPedPropIndex(GetPlayerPed(-1), 1, 5, 0, 2) --sunglassesSetPedPropIndex(GetPlayerPed(-1), 2, 0, 0, 2) --BluetoohSetPedComponentVariation(GetPlayerPed(-1), 11, 55, 0, 2) -- Shirt with no tieSetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2) --Nightstick decorationSetPedComponentVariation(GetPlayerPed(-1), 4, 35, 0, 2) --PantsSetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2) --Shoes thanks all Link to comment Share on other sites More sharing options...
SethRiley Posted November 20, 2018 Share Posted November 20, 2018 It is unclear to me what values the drawableId, TextureId and paletteId parameters should be. Say you simply want to spawn a SWAT guy with a helmet? Should that read SET_PED_PROP_INDEX(nameofped, 0, 1, 0, 0) ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now