// SetPedComponentVariation
void SET_PED_COMPONENT_VARIATION(Ped ped, int componentId, int drawableId, int textureId, int paletteId);
Parameters:- ped:
The ped handle.
- componentId:
The component that you want to set.
- drawableId:
The drawable id that is going to be set.
- textureId:
The texture id of the drawable.
- paletteId:
0 to 3.
This native is used to set component variation on a ped. Components, drawables and textures IDs are related to the ped model.
MP Freemode list of components
0: Face\
1: Mask\
2: Hair\
3: Torso\
4: Leg\
5: Parachute / bag\
6: Shoes\
7: Accessory\
8: Undershirt\
9: Kevlar\
10: Badge\
11: Torso 2
Related and useful natives
GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS\
GET_NUMBER_OF_PED_TEXTURE_VARIATIONS
List of component/props ID of player_two with examples
This is the server-side RPC native equivalent of the client native SET_PED_COMPONENT_VARIATION.