Autokit still shows in menu eventhough hidden is setSolved

Autokit does still show in the menu even when hidden is set to true

Autokit doesnt seem to work at all btw, i have saved it as "autokit" but idk if the issue is that im an admin but shouldnt it be claimed automaticly on respawn?

Goldie

Autokit doesnt seem to work at all btw, i have saved it as "autokit" but idk if the issue is that im an admin but shouldnt it be claimed automaticly on respawn?

post your config

nMyfFlEnglczTD3.jpg pookins

post your config

There isnt'anything to see in config though. Its just the default one. Ive worked with old kits plugin but this new one is a bit off a mess to be honest. Im not sure why its only able to do it through menu and not just commands like it used to be.

Anyway I have disabled the autokit and decided to make priority autokits. Currently only have 2 kits one for the autokit clothing and tools and 1 manual claimable kit.

However the autokit still shows up in the menu eventhough hidden is set to true

Default config with only 1 autokit:

{
  "Kit chat command": "kit",
  "Currency used for purchase costs (Scrap, Economics, ServerRewards)": "Scrap",
  "Log kits given": false,
  "Wipe player data when the server is wiped": false,
  "Use the Kits UI menu": true,
  "Allow players to toggle auto-kits on spawn": false,
  "Show kits with permissions assigned to players without the permission": false,
  "Players with the admin permission ignore usage restrictions": false,
  "Autokits ordered by priority": [
    "defaultspawn",
    "vip1spawn"
  ],
  "Post wipe cooldowns (kit name | seconds)": {
    "ExampleKitName": 3600,
    "OtherKitName": 600
  },
  "Parameters used when pasting a building via CopyPaste": [
    "deployables",
    "true",
    "inventories",
    "true"
  ],
  "UI Options": {
    "Panel Color": {
      "Hex": "#232323",
      "Alpha": 1.0
    },
    "Disabled Color": {
      "Hex": "#3e3e42",
      "Alpha": 1.0
    },
    "Color 1": {
      "Hex": "#007acc",
      "Alpha": 1.0
    },
    "Color 2": {
      "Hex": "#6a8b38",
      "Alpha": 1.0
    },
    "Color 3": {
      "Hex": "#d85540",
      "Alpha": 1.0
    },
    "Color 4": {
      "Hex": "#d08822",
      "Alpha": 1.0
    },
    "Default kit image URL": "https://chaoscode.io/oxide/Images/kiticon.png",
    "View kit icon URL": "https://chaoscode.io/oxide/Images/magnifyingglass.png"
  },
  "Kit menu items when opened via HumanNPC (NPC user ID | Items)": {
    "0": {
      "The list of kits that can be claimed from this NPC": [
        "ExampleKitName",
        "OtherKitName"
      ],
      "The NPC's response to opening their kit menu": "Welcome to this server! Here are some free kits you can claim"
    },
    "1111": {
      "The list of kits that can be claimed from this NPC": [
        "ExampleKitName",
        "OtherKitName"
      ],
      "The NPC's response to opening their kit menu": "Welcome to this server! Here are some free kits you can claim"
    }
  },
  "Version": {
    "Major": 4,
    "Minor": 4,
    "Patch": 0
  }
}

Well i only have one autokit and therefore it is called "autokit" and i get it on respawn whether i am in admin mode or player mode. I prefer the old system but this system works very well and i got used to the gui and am now a fan, I have 32 kits (bots/player/reward) and have no problems with them.
{
"Kit chat command": "kit",
"Currency used for purchase costs (Scrap, Economics, ServerRewards)": "Scrap",
"Log kits given": true,
"Wipe player data when the server is wiped": false,
"Use the Kits UI menu": true,
"Allow players to toggle auto-kits on spawn": false,
"Show kits with permissions assigned to players without the permission": true,
"Players with the admin permission ignore usage restrictions": false,
"Autokits ordered by priority": [
"autokit",
"OtherKitName"



According to the documentation you can get rid of the autokit by creating a custom one.


Custom AutoKits

Will only work if autokit isn't configured--> If you have an autokit, delete it with /kit remove autokit

The nice benefit to using Custom AutoKits over the traditional autokit is a few things...

  1. Priority Kit Giving ... so kits configured in the Config File (kits.json in config folder) are given a "number index".

    Example Code:

    "Custom AutoKits": {
       "0": "VipSpawn",
       "1": "VeteranSpawn",
       "2": "BasicSpawn"
    },
    

    This index means Custom AutoKits will be attempted to be given in the order of 0 - on. So 0 is highest priority for trying. In the example above on player respawn an attempt will be made to give the player VipSpawn, if not then VeteranSpawn, and finally BasicSpawn.. again to reiterate; if you have an "autokit" in your kits.json in the data folder none of this will happen as the "autokit" will be given and that will be it.

  2. I added checks for permissions, uses, and cooldown. So this means, if a player has permission Kits.VipSpawn and Kits.VeteranSpawn and Kits.BasicSpawn he or she will be eligible for all (3) Custom AutoKits. So if the player respawns and gets the VipSpawn and it has a 5 minute cooldown, then if that same player dies within 5 minutes he or she will instead be given the VeteranSpawn... this same logic works with uses..
    So taking the same example if VipSpawn has a 3 use max, after the 3rd respawn the player will then be given the VeteranSpawn instead because there are no "uses" left for the VipSpawn.

This should really add some customization to the "Respawn Kit" feel people are looking for.

How to make and configure a Custom AutoKits - 'kit'

For this example we will say the Kit is going to be named VipSpawn.

Start by filling your inventory with the items you want in the kit.
Type /kit add VipSpawn
Type /kit permission VipSpawn
Type /kit hide true
Type /kit authlevel 2
If you want Max Uses type /kit max amount --> example /kit max amount 3
Type /kit items

Now you have made a Custom AutoKit but you must configure it to work!

So open the config file (Kits.json) in the config folder and navigate to the Custom AutoKits Section.. and go ahead and input this new Kit name... This should look like this when done:

"Custom AutoKits": {
   "0": "VipSpawn"
},

Save this file and reload Kits.

Now, any player that is given the kits.vipspawn permission will receive this kit on respawn.

 

You just copy paste the info from the plugin page.

The issue is the autokit is showing up in the menu eventhough hidden is set to true

Goldie

You just copy paste the info from the plugin page.

The issue is the autokit is showing up in the menu eventhough hidden is set to true

 The issue is you say in your original post that you only have 1 autokit and then post a config that shows two

 "defaultspawn",
    "vip1spawn"

both are listed in the autokit section under autokit. if one lis configured as hidden and the other is configured as not hidden i guess the not hidden one is showing as an autokit, post the kit configuration of the two kits to show both are showing as hidden.
BTW , if it is an auto kit it is not "claimable",  it is an autokit
a
nd of course i copy paste it from the docs page , you want me to retype it ? 

nMyfFlEnglczTD3.jpg pookins

 The issue is you say in your original post that you only have 1 autokit and then post a config that shows two

 "defaultspawn",
    "vip1spawn"

both are listed in the autokit section under autokit. if one lis configured as hidden and the other is configured as not hidden i guess the not hidden one is showing as an autokit, post the kit configuration of the two kits to show both are showing as hidden.
BTW , if it is an auto kit it is not "claimable",  it is an autokit
a
nd of course i copy paste it from the docs page , you want me to retype it ? 

You are misunderstanding.

1) There is only 1 autokit
2) The autokit is set to hidden
3) Eventhough the kit is set to hidden, IT IS STILL SHOWING UP IN THE KIT MENU

I'm not asking "how do I set up autokit?" as I can read the docs myself. So I appreciate the help, but copy pasting the obvious information is not helpful, it just makes the thread a mess.

The issue is very simple

1. AUTOKIT IS HIDDEN
2. HIDDEN AUTOKIT STILL SHOWS UP




Merged post

I can copypaste the rest of the configs too, but this is not helpful and will only make the thread a mess.

{
  "_kits": {
    "defaultspawn": {
      "Name": "defaultspawn",
      "Description": "",
      "RequiredPermission": "kits.defaultspawn",
      "MaximumUses": 0,
      "RequiredAuth": 2,
      "Cooldown": 0,
      "Cost": 0,
      "IsHidden": true,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [],
      "WearItems": [
        {
          "Shortname": "burlap.shirt",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "burlap.trousers",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "BeltItems": [
        {
          "Shortname": "stonehatchet",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100.0,
          "MaxCondition": 100.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "stone.pickaxe",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100.0,
          "MaxCondition": 100.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "torch",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 50.0,
          "MaxCondition": 50.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ]
    },
    "gear": {
      "Name": "gear",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 0,
      "Cooldown": 43200,
      "Cost": 0,
      "IsHidden": false,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [],
      "WearItems": [
        {
          "Shortname": "roadsign.kilt",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 150.0,
          "MaxCondition": 150.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 3,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "shoes.boots",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "pants",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "hoodie",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.plate.torso",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 360.0,
          "MaxCondition": 360.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 4,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "tactical.gloves",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 6,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.facemask",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 320.0,
          "MaxCondition": 320.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 5,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "BeltItems": []
    },
    "ak": {
      "Name": "ak",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 0,
      "Cooldown": 43200,
      "Cost": 0,
      "IsHidden": false,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [
        {
          "Shortname": "ammo.rifle",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 180,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "WearItems": [],
      "BeltItems": [
        {
          "Shortname": "rifle.ak",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 150.0,
          "MaxCondition": 150.0,
          "Ammo": 30,
          "Ammotype": "ammo.rifle",
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": [
            {
              "Shortname": "weapon.mod.flashlight",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 300.0,
              "MaxCondition": 300.0,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 0,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            }
          ]
        }
      ]
    }
  }
}​

As you can see

3 kits:
- autokit
- gear
- ak

autokit set to hidden

still shows 3 kits in the menu

im not asking for someone to copy-paste the page of information that I can already see

im reporting the issue and asking for help:

AUTOKIT IS HIDDEN BUT STILL SHOWS UP

Goldie

You are misunderstanding.

1) There is only 1 autokit
2) The autokit is set to hidden
3) Eventhough the kit is set to hidden, IT IS STILL SHOWING UP IN THE KIT MENU

I'm not asking "how do I set up autokit?" as I can read the docs myself. So I appreciate the help, but copy pasting the obvious information is not helpful, it just makes the thread a mess.

The issue is very simple

1. AUTOKIT IS HIDDEN
2. HIDDEN AUTOKIT STILL SHOWS UP



Merged post

I can copypaste the rest of the configs too, but this is not helpful and will only make the thread a mess.

{
  "_kits": {
    "defaultspawn": {
      "Name": "defaultspawn",
      "Description": "",
      "RequiredPermission": "kits.defaultspawn",
      "MaximumUses": 0,
      "RequiredAuth": 2,
      "Cooldown": 0,
      "Cost": 0,
      "IsHidden": true,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [],
      "WearItems": [
        {
          "Shortname": "burlap.shirt",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "burlap.trousers",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "BeltItems": [
        {
          "Shortname": "stonehatchet",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100.0,
          "MaxCondition": 100.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "stone.pickaxe",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100.0,
          "MaxCondition": 100.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "torch",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 50.0,
          "MaxCondition": 50.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ]
    },
    "gear": {
      "Name": "gear",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 0,
      "Cooldown": 43200,
      "Cost": 0,
      "IsHidden": false,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [],
      "WearItems": [
        {
          "Shortname": "roadsign.kilt",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 150.0,
          "MaxCondition": 150.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 3,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "shoes.boots",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "pants",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "hoodie",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.plate.torso",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 360.0,
          "MaxCondition": 360.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 4,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "tactical.gloves",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 6,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.facemask",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 320.0,
          "MaxCondition": 320.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 5,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "BeltItems": []
    },
    "ak": {
      "Name": "ak",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 0,
      "Cooldown": 43200,
      "Cost": 0,
      "IsHidden": false,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [
        {
          "Shortname": "ammo.rifle",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 180,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "WearItems": [],
      "BeltItems": [
        {
          "Shortname": "rifle.ak",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 150.0,
          "MaxCondition": 150.0,
          "Ammo": 30,
          "Ammotype": "ammo.rifle",
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": [
            {
              "Shortname": "weapon.mod.flashlight",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 300.0,
              "MaxCondition": 300.0,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 0,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            }
          ]
        }
      ]
    }
  }
}​

As you can see

3 kits:
- autokit
- gear
- ak

autokit set to hidden

still shows 3 kits in the menu

im not asking for someone to copy-paste the page of information that I can already see

im reporting the issue and asking for help:

AUTOKIT IS HIDDEN BUT STILL SHOWS UP

I'm gonna take a stab in the dark and say that you have given yourself admin permissions for kits.

If you revoke admin permissions you will see what players see if this is the case they should be hidden.

FrRdzmavbxZ3MmS.png LizardMods

I'm gonna take a stab in the dark and say that you have given yourself admin permissions for kits.

If you revoke admin permissions you will see what players see if this is the case they should be hidden.

I will try this later, maybe it is so simple... In the old kits plugin there were 2 pages. 1 for total kits (this also had the autokit) and one for the kits that were actually displayed/available



Merged post

This worked btw. Confusing because old kits plugin had to add them through a different menu. Now I have to revoke admin rights everytime to see the kits menu after doing some changes. But it works.
Goldie

I will try this later, maybe it is so simple... In the old kits plugin there were 2 pages. 1 for total kits (this also had the autokit) and one for the kits that were actually displayed/available



Merged post

This worked btw. Confusing because old kits plugin had to add them through a different menu. Now I have to revoke admin rights everytime to see the kits menu after doing some changes. But it works.

true but if you're going to make kits that are hidden don't give them a URL image it will give it the default icon so that you know at a glance which ones are hidden right off the bat.

However, if you are using NPC's integration this might not work. The documentation for NPCs is out of date as well but it's relatively simple to add the NPC's integration. I had to figure that out on my own. Anyways NPCs can display specific kits and if you want that kit to only be displayed for a specific NPC the kit must be "hidden" of course when the NPC displays it you want the icon to appear for his little shop. maybe I'll make a video.

Locked automatically