<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thedamngod</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thedamngod"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Thedamngod"/>
	<updated>2026-04-14T19:24:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDevelopmentMode&amp;diff=65418</id>
		<title>SetDevelopmentMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDevelopmentMode&amp;diff=65418"/>
		<updated>2020-03-17T19:01:39Z</updated>

		<summary type="html">&lt;p&gt;Thedamngod: Added a note to the example stressing the point that the code has to be added on the client side&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the development mode. Setting development mode allows access to special commands which can assist with script debugging.&lt;br /&gt;
&lt;br /&gt;
'''Client-side''' development mode commands:&lt;br /&gt;
* '''[[Client_Commands#showcol|showcol]]''': Enables colshapes to be viewed as a wireframe object.&lt;br /&gt;
* '''[[Client_Commands#showsound|showsound]]''': Enables world sound ids to be printed in the debug output window.&lt;br /&gt;
&lt;br /&gt;
'''Shared''' development mode functions:&lt;br /&gt;
* '''[[debugSleep]]''': Sets the freeze time for the client/server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDevelopmentMode ( bool enable [, bool enableWeb = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''enable''': A boolean to indicate whether development mode is on (''true'') or off (''false'') &lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''enableWeb''': A boolean to indicate whether browser debug messages will be filtered (''false'') or not (''true'')&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the mode was set correctly, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.5.4-9.11305|1.1.1-9.03355|}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example would set the development mode of the client. Use /showcol [&amp;lt;0-1&amp;gt;] and /showsound [&amp;lt;0-1&amp;gt;] later to enable/disable respective functions. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;devmode&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        setDevelopmentMode(true)&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It is important to note that this example has to be in a client side script. Otherwise, the execution of the command would only result in the shared dev mode that does not allow the use of '''[[Client_Commands#showcol|showcol]]''' and '''[[Client_Commands#showsound|showsound]]'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_utility_functions}}&lt;/div&gt;</summary>
		<author><name>Thedamngod</name></author>
	</entry>
</feed>