Skip to content

Adding your custom item

michu97736 edited this page Mar 9, 2024 · 3 revisions

To add your item to the spawn menu, you have to use the Add() method like so:

First way

public Dictionary<string, GameObject> TESTMOD;

TESTMOD = new Dictionary<string, GameObject>();
TESTMOD.Add("bikebar", GameObject.Find("bikebar"));
MscSpawnMenu.Add(TESTMOD, MscSpawnMenu.Categories.Other);

Second way

MscSpawnMenu.Add("bikebar", GameObject.Find("bikebar"), MscSpawnMenu.Categories.Other);

Clone this wiki locally