Verize Posted September 30, 2017 Report Posted September 30, 2017 (edited) Is there any way to get just parts of the items name? For example the market_hash_name is StatTrakâ„¢ Tec-9 | Isaac (Field-Tested). How can I get/extract just the weapon name (Tec-9) or the skin name (Isaac)? I'm sorry if this question has already been asked, I couldn't find any info about it. Thanks Edited September 30, 2017 by Verize Quote
xLeeJYx Posted October 1, 2017 Report Posted October 1, 2017 (edited) Is there any way to get just parts of the items name? For example the market_hash_name is StatTrakâ„¢ Tec-9 | Isaac (Field-Tested). How can I get/extract just the weapon name (Tec-9) or the skin name (Isaac)? I'm sorry if this question has already been asked, I couldn't find any info about it. Thanks var splited = ("StatTrakâ„¢ Tec-9 | Isaac (Field-Tested)").split(" ") console.log(splited) //[ 'StatTrakâ„¢', 'Tec-9', '|', 'Isaac', '(Field-Tested)' ] Then you can access the Tec-9 with splitted[1] *Edit* I dont think you can do it through CEonItem Edited October 1, 2017 by xLeeJYx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.