GM:EntityEmitSound
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.