This commit is contained in:
Sardelka 2022-06-18 12:04:31 +08:00
parent 13883242e4
commit cc4f5f46ce
2 changed files with 3 additions and 9 deletions

View File

@ -292,7 +292,7 @@ namespace RageCoop.Client
{
for (byte i = 0; i < 11; i++)
{
Function.Call(Hash.SET_PED_COMPONENT_VARIATION, MainPed.Handle, i, Clothes[i], Clothes[i+11], Clothes[i+22]);
Function.Call(Hash.SET_PED_COMPONENT_VARIATION, MainPed.Handle, i, (int)Clothes[i], (int)Clothes[i+11], (int)Clothes[i+22]);
}
_lastClothes = Clothes;
}

View File

@ -72,14 +72,8 @@ namespace RageCoop.Client
for (byte i = 0; i < 11; i++)
{
result[i]=(byte)Function.Call<short>(Hash.GET_PED_DRAWABLE_VARIATION, ped.Handle, i);
}
for (byte i = 11; i < 22; i++)
{
result[i]=(byte)Function.Call<short>(Hash.GET_PED_TEXTURE_VARIATION, ped.Handle, i);
}
for (byte i = 22; i < 33; i++)
{
result[i]=(byte)Function.Call<short>(Hash.GET_PED_PALETTE_VARIATION, ped.Handle, i);
result[i+11]=(byte)Function.Call<short>(Hash.GET_PED_TEXTURE_VARIATION, ped.Handle, i);
result[i+22]=(byte)Function.Call<short>(Hash.GET_PED_PALETTE_VARIATION, ped.Handle, i);
}
return result;
}