Handling items and inventory interaction?
Hello!
I recently started learning C # -Plugins for Rust and ran into a problem!
How to do this example:
If a person has 2 apples in his inventory, 2 coins are given on his balance (suppose that instead of coins he receives “i ++” (the player should be given exactly the number of coins, how many apples he has been taken!)), And the apples are taken him!
Thank you in advance!
And good for you!
Hey!
If you want to give/take points when the player gets/drops applap, you can use hooks (Something like OnItemAddedToContainer, I don't remember it's name lol)
There are hundreds of free and open-source plugins here that do all sorts of things.  I suggest you install some of them and see how they work.

  1. General documentation on the uMod API
  2. Economics (for your "coins")

With respect to interacting with the player inventory, I would suggest looking at..
player.inventory​
in BasePlayer.  There are plenty of plugins that use the player inventory, e.g. Kits,