setDevelopmentMode | Multi Theft Auto: Wiki Skip to content

setDevelopmentMode

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.


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

bool setDevelopmentMode ( bool enable, [ bool enableWeb = false ] )
Required Arguments
  • enable: A boolean to indicate whether development mode is on ( true ) or off ( false )
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • enableWeb (default: false): MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if the mode was set correctly, false otherwise.

Code Examples

shared

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
)