danielkrupinski / Osiris

Cross-platform game hack for Counter-Strike 2 with Panorama-based GUI.
MIT License
3.35k stars 960 forks source link

How to Modify Inventory Properties #3776

Open lanting200 opened 2 years ago

lanting200 commented 2 years ago

I try to modify the wear and tear of my current stock Need help image

lanting200 commented 2 years ago

I want to try to create an inventory modification menu in game

danielkrupinski commented 2 years ago

You can add a method to ItemModificationHandler class, modifying the item properties (it should be called from GUI code). In order to update the item in the CS:GO inventory you should add a new backend response type and implement handling it. You can check how updating StatTrak counter is implemented in the source code.