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
trueto apply all changes done to the data table. - Return
falseto prevent the sound from playing. - Return
nilor nothing to play the sound without altering it.
Example
Slows down all sounds to reflect game.SetTimeScale.
Garry's Mod
Rust
Steamworks
Wiki Help