surface.PlaySound

From GMod Wiki

Jump to: navigation, search
Function
Syntax surface.PlaySound( String filepath )
Where is this used?
Description:
Plays a sound file on the client.
Returns: nil
Part of Library: surface
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Surface.PlaySound]Surface.PlaySound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPlays the sound /music/hl2_song20_submix0.mp3.
Used onNewerClient.png
Code
surface.PlaySound( "/music/hl2_song20_submix0.mp3" )
OutputA sound is played.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox