❓ Glove Changer Problem! Gloves are Chrome
Hello MPGh, i made a glove changer today but the gloves are chrome for some reason. What is the problem.
Im getting error that material cant be set on CEconWearable
Im getting error that material cant be set on CEconWearable
Code:
*glove->GetItemDefinitionIndex2() = 5027;
*glove->OriginalOwnerXuidHigh() = -1;
*glove->GetEntityQuality() = 4;
*glove->GetAccountID() = localplayer_info.xuidlow;
*glove->FallbackWear() = 0.00000001f;
*glove->FallbackSeed() = 0;
*glove->FallbackStatTrak() = -1;
*glove->FallbackPaintKit() = 10006
((TheClientEnt*)glove)->SetModelVirtual(Interfaces::ModelInfo-
>GetModelIndex(GameUtils::GetModelByIndex(*glove->GetItemDefinitionIndex2())));
glove->FrameDataUpdata(0);
Code:
void SetModelVirtual(int index)
{
typedef void(__thiscall* SetModelIndexFn)(void*, int);
call_vfunc<SetModelIndexFn>(this, 75)(this, index);
}