chat.PlaySound

From GMod Wiki

Jump to: navigation, search
Function
Syntax chat.PlaySound( String soundToPlay )
Where is this used?
Description:
Plays the sound associated with receiving a chat message.
Returns: nil
Part of Library: chat
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Chat.PlaySound]Chat.PlaySound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPlays a sound.
Used onNewerClient.png
Code
chat.AddText( Color( 255, 64, 96 ), "BOSS: ", Color( 255, 255, 255 ), "Get back to work!" )
chat.PlaySound()
OutputDisplays a message to the chat box and plays the notification sound.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox