sound.Play question

Im working with the addon Roll The Dice, and im trying to make one of the things that can happen is it plays a sound. Im trying to use sound.Play to make it happen, but what directory does that look in? The main directory of /garrysmod or the directory the roll the dice file is in?

Edit: also does the audio file have to be .wav?


The file can be any sound file that is supported by GMod, so .ogg, .mp3, or .wav.

Here’s an example addon which puts sounds into sound/

NOTE: When calling any sound play function, sound/ is omitted. When using resource.Add[Single]?File then sound/ is required…