Part of StarfallEx namespace
๐ External
hook.add("EntityEmitSound", "name", function(data) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
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.
Parameters
| Name | Type | Description |
|---|---|---|
data | table | Information about the played sound. Changes done to this table can be applied by returning true from this hook. See https://wiki.facepunch.com/gmod/Structures/EmitSoundInfo. |
Returns
| Type | Description |
|---|---|
boolean | Return false to prevent the sound from playing or nothing to play the sound without altering it. |
Examples
No examples available.
Used In
No usages found in the codebase.