Plays a file from GMod directory. You can find a list of all error codes here
For external file/stream playback, see sound.PlayURL.
Issue Tracker: 1752
Issue Tracker: 2304
Unlike other sound functions and structures, the path is relative to
garrysmod/ instead of
- 3d - Makes the sound 3D, so you can set its position
- mono - Forces the sound to have only one channel
- noplay - Forces the sound not to play as soon as this function is called
- noblock - Disables streaming in blocks. It is more resource-intensive, but it is required for IGModAudioChannel:SetTime.
If you don't want to use any of the above, you can just leave it as "".