Garry's Mod Wiki
Description
Called whenever a sound has been played. This will not be called clientside if the server played the sound without the client also calling Entity:EmitSound.
Arguments
1 table data
Information about the played sound. Changes done to this table can be applied by returning
true
from this hook.
Returns
1 boolean
- Return
true
to apply all changes done to the data table. - Return
false
to prevent the sound from playing. - Return
nil
or nothing to play the sound without altering it.
Example
Slows down all sounds to reflect game.SetTimeScale.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...