setDevelopmentMode | Multi Theft Auto: Wiki Skip to content

setDevelopmentMode

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


This function is used to set the development mode. Setting development mode allows access to special commands which can assist with script debugging.

Note

Enabling development mode on the server side does not enable it on the client side. These functions work independently on both sides

Syntax

setDevelopmentMode ( )

Code Examples

server

Example 1:This example would set the development mode of the client. Use /showcol [<0-1>] and /showsound [<0-1>] later to enable/disable respective functions.

addCommandHandler("devmode",
function()
setDevelopmentMode(true)
end
)