Rust-Kits

Moved

Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018

4.96216/5, 185 likes
  1. Failed to initialize plugin 'Kits v3.2.1' (NullReferenceException: Object reference not set to an instance of an object)
    When loading :( Anyone else have this?
     
  2. So absolut what would i type to open another UI menu ? how would vips open the vip menu ?
     
  3. [​IMG]


    How to do this?
     
  4. Everything is working fine, but I'm still able to redeem kit even if I don't have enought inventory space...
    And I know why - you are just checking (kit.items.Count > (36 - player.inventory.AllItems().Count()))
    But what if the kit contains only 3 weapon, and I have 5 empty cloth slots, and zero in belt and main?
    -----------EDIT--------------
    I've found another problem. Calling /kit <kitname> while using gui creates a mess. It gives you a kit, but also opens the menu without mouse active....
     
    Last edited by a moderator: Feb 28, 2017
  5. go to data/Kits.json - change "image" paramater from null, to your image link like: "image",
     
  6. Can someone tell me how i make "Vip" kits with Authlevel or Permission idk how i work :(
    I want kits that just can use my friend and not all player how it work???
     
  7. How do i change the text colour from white on the ui screen once ive added a kit to the menu?
     
    Last edited by a moderator: Feb 28, 2017
  8. Step-by-step.
    1. Create a new kit -- /kit add <kitname>
    2. Start editing your new kit(I'm not sure if it happens automaticly after adding new kit) -- /kit edit <kitname>
    3. Add items for the kit (would copy your whole inventory to kit) /kit items
    4. Assign authlevel(if your friend is admin) or permission to your kit /kit authlevel <1|2> AND /kit permission <permission_name>
    5. Grant permission to your friend -- grant user YOUR_FRIEND_ID kits.<permission_name>
    Example:
    Code:
    /kit add test
    /kit edit test
    /kit items
    /kit authlevel 2
    /kit permission test
    ownerid 76561198002418971 "Name" "Description" // giving user authlevel 2
    grant user 76561198002418971 kits.test
     
  9. Kits | Page 254 | Oxide
    [DOUBLEPOST=1488306188][/DOUBLEPOST]
    Vlad you dont need to give a permission as you have auth level 2 you dont need to edit the kit while you are in the middle of making it the best way to to make a special group and add whoever you need to the group then add a permission to the group
     
  10. Yes release very soon.. and I know inventory isn't the best.. Ill try checking all containers but need to see how much load it takes..
     
  11. Absolut updated Kits with a new update entry:

    3.2.2

     
  12. can someone help? id really like to change the colour so i can use my custom background!
     
  13. @Absolut is there a way to create separate menus for certain kits

    IE: section for clothing, Section for tools, Section for food
     
  14. You will need to open .cs file and modify it.
     
  15. where would i find it within the .cs file?
     
  16. There is but you will need to use NPCs. There is by default only (1) global GUI.
     
  17. So I would need to create more than 1 NPC, is there a guide on how to do that? and would they all be linked to the same /kit (So you would just click the next arrow and it brings you to the next section)
     
  18. So in the Config File under the "NPC - GUI Kits:" section is a series of entries (by default 2). The number is the ID of the NPC. It is hardcoded to open the UI for the entry of "0" but any other will only open if you interact with an NPC that has THAT 'ID'. So to make multiple different shops, download HumanNPC, create some NPC's, get their ID's from the Chat command in HumanNPC or the .json and simply add entries to NPC GUI Kits that match that 'id'.

    So example: You make an NPC and it has an id of 1245151512

    You go into Kits.json and add this...

    "NPC - GUI Kits": {
    "0": { ---Existing
    "description": "<color=red>VIPs Kits</color>",
    "kits": [
    "kit1",
    "kit3",
    "armor",
    "attachments",
    "survey",
    "red",
    "tnt",
    "m249",
    "build3",
    "vip3",
    "build1",
    "firearrows"
    ]
    },
    "1245151512": { ---> New....
    "description": "MAKE THIS WHAT YOU WANT",
    "kits": []
    }
    },

    then from inside the game you can just use the "Add Kits" button while interacting with the NPC to add the kits you want...

    Does that make sense?
     
  19. Thank you for this, that does help with setting NPC's with kits, but when I do that, you need to interact with the NPC's to get the kits, I was wondering if there was an internal way to split up the into different sections all within the same NPC-ID