Kits provides configurable starter kits for your server that allows your users to get a head start on the server.

There are a few commands you must know and they are listed below.

Chat Commands
/kit
Lists all available kits
/kit "kit name"
Gives the caller the specified kit

Notes
The kits are specified in a json-formatted configuration file called "cfg_kits.txt"
Kit-specific player data is stored in "kits_players.txt", you shouldn't need to edit this
Kits JSON Format

If you are wanting to change up your kits (what you give your players in-game) you just have to edit your kits_cfg.txt which can be found in File Manager>save\oxide\data\kits_cfg.txt
The easiest way to learn the format is with an example.
Code (text):

{
"starter":
{
"message": "Starter kit redeemed, good luck!",
"items":
[
"Stone Hatchet",
"Cloth Pants",
{ "name": "Cooked Chicken Breast", "amount": 10 },
"Wood Shelter"
]
},
"hatchet":
{
"message": "It's dangerous to go alone! Take this.",
"max": 1,
"items":
[
"Hatchet"
]
}
}

The example provides 2 kits - one called "starter" and one called "hatchet". The format should be self-evident.
There are 2 optional parameters for each kit.
"message" determines what message to show in a notice to the user when they have redeemed a kit.
"max" determines the maximum number of times a kit can be used. Typically this is 1.
Again, make sure to use a JSON validator before uploading!

And there you have it, you are now able you have your own kits!

Var dette svaret til hjelp? 1 brukere syntes dette svaret var til hjelp (11 Stemmer)