isAmbientSoundEnabled | Multi Theft Auto: Wiki Skip to content

isAmbientSoundEnabled

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows you to check if some background sound effects are enabled.

Syntax

isAmbientSoundEnabled ( )

Code Examples

client

This command checks if the type of ambient sound is enabled or not. /check

addCommandHandler("check",function(_,_type)
if isAmbientSoundEnabled(_type) then
outputChatBox(_type.." is enabled!",0,255,0)
else
outputChatBox(_type.." is disabled!",255,0,0)
end
end)

See Also

World Functions