1. give... rifle.ak.skin.ak47.temperedak47 ?
     
  2. You have to create it using ItemManager.CreateByItemID I think, or something similar, and then you find the skin ID manually from the docs, or alternative ways.

    I don't think there's currently a plugin that supports spawning skinned items natively, but I could be wrong.
     
  3. This is how i do mine:
     
    Last edited by a moderator: Jun 8, 2016
  4. This is pretty much how I did it, but I just didn't paste the code as last I knew they (Wulf, I guess) didn't really want skin plugins to become a public thing.
     
    Last edited by a moderator: Jun 8, 2016
  5. Yeah, being able to give any skin sort of defeats the purpose of skin rarity, but in my opinion if they are using a plugin to give skinned items then they probably aren't interested in skin rarity anyway. Rust isn't really at the point where people go "Oh wow you have that super rare skin, that's awesome!". The item drop rates don't really support a healthy skin economy outside of buying them just yet. I have 586 hours on Rust (a lot of them before Skins were a thing, though), and have only ever gotten paintings and crappy clothing skins (yellow long sleeve shirt..., twice).
     
  6. I agree, and hey, look at that, seems I was right, posts were edited, lol.
     
  7. ah, didn't realise we were keeping this secret :)
     
  8. Wulf

    Wulf Community Admin

    Not a secret, it just depends on your purpose whether it is allowed here. ;)

    Posting full snippets and working plugins for the purpose of selecting or picking a skin at choice isn't.
     
  9. If you look in the kits config it includes a "Skin ID" value, try looking at the skin numbers I believe @Wulf posted,
     
  10. Is there a way to get a list of all available skins for a given weapon id?

    Like if I get the Item activeItem = player.GetActiveItem();

    can I get a list of all skin ID's that this item supports?
     
  11. Wulf

    Wulf Community Admin

    I'm not sure about listing them from that, but the list is under the Docs at the top.
     
  12. Yes that I know, I guess I have to build my own list to get the next skin from for a given weapon ID. Thanks for the quick response tho!
     
  13. Item Skin Randomizer has a example of how to get a skin list
     
  14. Thank you! Works like a charm!
     
    Last edited by a moderator: Jun 29, 2016
  15. Off the top of my head I think it's ItemManager.FindItemDefinition(string shortname -or- Int itemid ).
     
  16. item.info.skins is a list of available skins for that item.