mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-23 04:27:25 +08:00
commit (#1158)
This commit is contained in:
parent
8ad4cf01dd
commit
f6da0f1ceb
@ -106,8 +106,14 @@ namespace big::ped
|
||||
outfit::components_t components;
|
||||
for (auto& item : components.items)
|
||||
{
|
||||
int drawable_id = range(0, PED::GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS(ped, item.id) - 1);
|
||||
int texture_id = range(0, PED::GET_NUMBER_OF_PED_TEXTURE_VARIATIONS(ped, item.id, drawable_id) - 1);
|
||||
int drawable_id_max = PED::GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS(ped, item.id) - 1;
|
||||
if (drawable_id_max == -1)
|
||||
continue;
|
||||
int drawable_id = range(0, drawable_id_max);
|
||||
int texture_id_max = PED::GET_NUMBER_OF_PED_TEXTURE_VARIATIONS(ped, item.id, drawable_id) - 1;
|
||||
if (texture_id_max == -1)
|
||||
continue;
|
||||
int texture_id = range(0, texture_id_max);
|
||||
PED::SET_PED_COMPONENT_VARIATION(ped, item.id, drawable_id, texture_id, PED::GET_PED_PALETTE_VARIATION(ped, item.id));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user