SET CHAR PROP INDEX
Jump to navigation
Jump to search
Number of parameters: 3 | ||
---|---|---|
Parameter # | Type | Description |
1. | Handle | Ped Handle |
2. | int | Prop type (hat or glasses) |
3. | int | Prop index |
Return value: | ||
Type | Description | |
None |
Sets a ped's prop (hats, glasses, etc) variation, similar to component variations.
Example:
u32 Prop1;
u32 Prop2;
GET_CHAR_PROP_INDEX(Ped1, 0, &Prop1);
CLEAR_CHAR_PROP(GetPlayerPed(), 0);
SET_CHAR_PROP_INDEX(GetPlayerPed(), 0, Prop2);
GET_CHAR_PROP_INDEX(Ped1, 1, &Prop2);
CLEAR_CHAR_PROP(GetPlayerPed(), 1);
SET_CHAR_PROP_INDEX(GetPlayerPed(), 1, Prop2);