Vending machine that use Economics (Rust)
can a vending machine be made to use Economics instead of swapping for other stuff in game ??
In response to tomhud ():
can a vending machine be made to use Economics instead of swapping for other stuff in game ??
No, you can't. Because in order list only items are available
it's possible to use the vending machine as a big button then have a custom GUI interface overlay with a Economy based shop but that's a lot of work.
You can convert economics to coins and sell them in vending machine, I see how to do it exactly, Add me on discord:- Tricky#3512
In response to Tricky ():
You can convert economics to coins and sell them in vending machine, I see how to do it exactly, Add...
You can't sell custom items in vendings....
In response to Orange ():
You can't sell custom items in vendings....
oOOoo I didn't know you can't sell skinned item in vending machine
you can sell useless items such as Blood bags use it like a physical item currency thenplayers can sell them via GUIShop for Economy
In response to XNeo ():
you can sell useless items such as Blood bags use it like a physical item currency thenplayers can s...
That will be free, but a kind complicated for players

vending open: add items to buy what is in there. Add playerID to a dictionary with a dictionary as the value and the playerID as the key. Add the items needed to buy the items in the vending machine to the dictionary so we can edit the player invo later.
on player increase/decrease buyable items, increase/decrease items in player inv to comp and increase/decrease items in the dictionary we made.
on player leaves/dies/disconnects: remove items from the players invo acording the the dictionary.

There you go. I will not add the coding to here as it is not mine but you can use plugins as examples and make your own. i used vending manager as my example to help with your question. here is a hook list of all the available hooks: https://docs.oxidemod.com/hooks/