IsShowSoundEnabled

From Multi Theft Auto: Wiki
Revision as of 17:29, 7 November 2024 by Fernando187 (talk | contribs) (Remove obsolete Requirements section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function indicates if world sound IDs should be printed in the debug window or not.

[[{{{image}}}|link=|]] Note: This function only works in development mode.

Syntax

bool isShowSoundEnabled ( )

Returns

  • Returns true if world sound IDs should be printed in the debug window, false otherwise.

Example

You can refer to the example below:

setDevelopmentMode (true)

addCommandHandler ("devdebug",
    function ()
        showSound (not isShowSoundEnabled())
    end
)

See Also