Jump to content
McKay Development

Recommended Posts

Posted (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 by Verize
Posted (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 by xLeeJYx

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...