showSound | Multi Theft Auto: Wiki Skip to content

showSound

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.


Prints world sound IDs in the debug output window to help when writing scripts with setWorldSoundEnabled.

Note

This function only works in development mode.

Syntax

bool showSound ( bool state )
Required Arguments
  • state: A boolean indicating if the world sound IDs should be printed in the debug window or not.

Returns

  • bool: value

You can refer to the example below:

Code Examples

shared

You can refer to the example below:

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