Kit spawning

Kits are customisable inventories that the player can spawn with if the Admin/Owner wishes. They are customisable in the G-Portal boot commands menu, and will be saved to the server when it starts up. These commands can also be entered in the console.


Quick reference

CommandDescription

kit list

Lists active kits on the server in the console.

kit add "kitname" "itemshortname" "amount" "condition" "container" Containers: "Main" / "Belt" / "Wear"

Adds an item to the kit, or creates a new kit if no kits with your chosen name exist.

kit info "kitname"

Provides info about the given kit.

kit remove "kitname" "id"

Removes an item from the kit, deletes it if empty.

kit delete "kitname"

Deletes a kit entirely.

kit edit "kitname" changename "newname"

Changes the defined "kitname" to "newname".

kit edit "kitname" addgroup "group" Groups: "User" / "VIP" / "Moderator" / "Admin" / "Owner"

Adds the defined "kit" to spawn for all users in the defined "group". Valid groups are the different user tiers: "User", "VIP", "Moderator", "Admin", "Owner". Go here for more details

kit edit "kitname" removegroup "group" Groups: "User" / "VIP" / "Moderator" / "Admin" / "Owner"

Removes the defined "kit" and stops it from spawning for all users in the defined "group". Valid groups are the different user tiers: "User", "VIP", "Moderator", "Admin", "Owner". Go here for more details

kit givetogroup "kitname" "group"

Gives a defined "kit" to a defined "group" once (not active by default).

kit givetoplayer "kitname" "ID"

Gives a defined "kit" to a defined "player" once (not active by default).

kit giveall "kitname"

Gives a defined "kit" to all players once. (not active by default).

inventory.adddefaultitem "shortname"

Adds the "item" to the player’s inventory upon spawning.

inventory.removedefaultitem "shortname"

Removes every instance of the "item" from the player’s inventory upon spawning.

craft.adddefaultblueprint "shortname"

Adds the "blueprint" to the player’s knowledge base upon spawning.

craft.removedefaultblueprint "shortname"

Removes the "blueprint" from the player’s knowledge base upon spawning.

List current kits

kit list

Lists active kits on the server in the console.

Add new kit

kit add "kitname" "itemshortname" "amount" "[condition]" "[container]"

Adds an item to the kit, or creates a new kit if no kits with your chosen name exist. Condition options: XXXXX Container options: "Main" / "Belt" / "Wear" (Main is an inventory slot, Belt is a hotbar slot , Wear is gear slot)

Example:

kit add "NewKit1" "rifle.ak" 1 1 Belt

Effect:

Creates a kit called NewKit1, adds an AK rifle to it, and places that item in a player’s hotbar when active.


Remove kit

kit remove "kitname" "id"

Removes an item from the kit, deletes it if empty.

Example:

kit remove "NewKit1" "1234"

Effect:

Removes the Assault Rifle from NewKit1. If the kit is empty it then deletes the kit completely. The ID (1234 in the case above) that you enter is found by running kit info NewKit1 as described below and selecting the corresponding ID number to the item you want to remove.


Delete kit

kit delete "kitname" "id"

Removes an item from the kit, deletes it if empty.

Example:

kit delete "NewKit1"

Effect:

Deletes NewKit1, regardless of how many items are in it.


Rename kit

kit edit "kitname" changename "newname"

Changes the defined "kitname" to "newname".

Example:

kit edit "NewKit1" "NewKitName"

Effect:

Changes NewKit1’s name to NewKitName.


Spawn kit to group

kit edit "kitname" addgroup "[group]"

Adds the defined "kit" to spawn for all users in the defined "group". Valid groups are the different user tiers: "User", "VIP", "Moderator", "Admin", "Owner". Go here for more details

Example:

kit edit "NewKit1" addgroup "VIP"

Effect:

Makes NewKit1 appear in the inventory by default for all VIP tier server users.


Remove spawn kit from group

kit edit "kitname" removegroup "[group]"

Removes the defined "kit" and stops it from spawning for all users in the defined "group". Valid groups are the different user tiers: "User", "VIP", "Moderator", "Admin", "Owner". Go here for more details

Example:

kit edit "NewKit1" removegroup "VIP"

Effect:

Makes NewKit1 no longer appears in the inventory by default for all VIP tier server users.


Give kit to group

kit givetogroup "kitname" "[group]"

Gives a defined "kit" to a defined "group" once. Valid groups are the different user tiers: "User", "VIP", "Moderator", "Admin", "Owner". Go here for more details

Example:

kit givetogroup "NewKit1" "VIP"

Effect:

Gives NewKit1 to all VIP tier players inventories. Note: the kit will be lost upon dying.


Give kit to player

kit givetoplayer "kitname" "id"

Gives a defined "kit" to a defined "player" once.

Example:

kit givetoplayer "NewKit1" "2StageFright"

Effect:

Gives NewKit1 to player with the gamertag 2StageFright, it will appear in their inventories. Note: the kit will be lost upon dying.


Give kit to all

kit givetoall "kitname"

Gives a defined "kit" to all players once.

Example:

kit givetoall

Effect:

Gives NewKit1 to all players, it will appear in their inventories. Note: the kit will be lost upon dying.


Get kit info

kit info "kitname"

Provides info about the given kit.

Example:

kit info "NewKit1"

Effect:

Assuming the kit "NewKit1" includes an Assault Rifle and Metal Facemask, returns the following information


Last updated