resetAmbientSounds | Multi Theft Auto: Wiki Skip to content

resetAmbientSounds

Client-side
Server-side
Shared

Manual Review Required

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


This function is used to reset the background sounds to the default setting.

Syntax

bool resetAmbientSounds ( )

Returns

  • bool: value

Returns true if the ambient sounds were reset, false otherwise.

Code Examples

shared
function resetAmbient()
resetAmbientSounds() --This will reset the Ambient Sounds of the game
end
addCommandHandler("resetambient", resetAmbient) -- If you use this command it would trigger the resetAmbient function

See Also

World Functions