Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.EntityEmitSound

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("EntityEmitSound", "name", function(data) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:580
๐Ÿ“‹ 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

NameTypeDescription
datatableInformation 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

TypeDescription
booleanReturn 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.