Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. change
- Code:
- void AddItem(CMsgSOCacheSubscribed::SubscribedType* Object, int index, int itemDefIndex, int rarity, int paintKit, int seed, float wear, std::string name)
- to
- Code:
- void AddItem(CMsgSOCacheSubscribed::SubscribedType* Object, int index, int itemDefIndex, int rarity, int paintKit, int seed, float wear, std::string name, int quality)
- and
- Code:
- Skin.set_quality(0);
- to
- Code:
- Skin.set_quality(quality);
- 2. and then add it to the AddItem, example here;
- Code:
- AddItem(Object, 1, WEAPON_KNIFE_M9_BAYONET, 6, 415, 3, 0.014229776299923f, "", 3);
- the ", 3)" at the end
- 4 for regular items, 3 for the star on knives, 12 for souvenir, and 9 for StatTrak.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement