ResetWorldSounds

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function ResetWorldSounds needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

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

Syntax

bool resetWorldSounds()

Returns

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

Requirements

This template will be deleted.


Example

By this command player can choose to reset world sounds to the default setting if it has been changed before using setWorldSoundEnabled

function iWantTheDefaultSounds()
    resetWorldSounds()
end
addCommandHandler('resetSounds' , iWantTheDefaultSounds )

See Also