Display item/attribute names
Using TF2Items I have (somewhat?) successfully implemented random attribute changes. However, I need a way to display these attribute changes to the user.
How do I transform the numeric ID into a string that is readable by others? I'm looking for two things: turning the attribute ID into an attribute string, and turning the item ID into an item string. Thanks. |
Re: Display item/attribute names
You can use TFEconData by the very talented nosoop to get an item name. It allows you to input an item index and it will return an item name. Here's a link: https://github.com/nosoop/SM-TFEconData
partial code example: PHP Code:
|
All times are GMT -4. The time now is 01:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.