RustTip

entity.spawnvendor

commandserver

Spawns a complete NPC vendor by vendor name and the stock it should sell - both the shopkeeper NPC and the invisible vending machine it needs - or any other vending machine by prefab name, at the position the calling player is looking at. Leave out the stock to list them(description generated by Facepunch)

Quick info

Runs on
server
Class
ConVar.Entity

Example

entity.spawnvendor

In other branches

public
unchanged
aux02
unchanged