SlashCo Wiki

SlashCo.LobbyVendorVoice

  SlashCo.LobbyVendorVoice( Player ply, string item )

Description

This is used internally - although you're able to use it you probably shouldn't.
Plays a voice line on the item vendor that the given player last used, reacting to the item they just bought.
Plays a special line instead if the Nightmare Offering is active. Does nothing if the player has no last used item stash.

Arguments

1Player ply

The player that bought an item

2string item

ID of the item that was bought