Giving note items on every respawn

Hello,

I want to give an item with a note in the inventory of a newly logged in player (or every respawn).Is there a plugin for this?I can give items with some plugins.But since the plugin I gave will be a note, how do I write a note in it?

https://umod.org/plugins/rust-kits

You can set up an auto kit so they always get the note when they login/respawn. Instructions for that are on the plugin page.

LemonSoda you could make your own plugin if you're up for it, something like this is all you really need to get started:

        private void GivePlayerNote(BasePlayer player, string message)
        {
            var note = (Item)ItemManager.CreateByItemID(NoteId, 1);
            note.text = message;
            player.inventory.containerMain.Insert(note);
        }
​

You could call this from something like this:

        void OnPlayerSpawn(BasePlayer player)
        {
            GivePlayerNote(player, "Whatever message you want, or maybe load from config?");
        }

I don't know if OnPlayerConnected will let you access the inventory yet because the player object may not have inventory containers, you'll have to figure out which hook works best for you.