ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setDevelopmentMode

Function

setDevelopmentMode

Server and clientUtilitiesIdentical to MTA:SA

Turns development mode on. On the client the second argument unlocks developer tools for pages in script browsers. On the server it stores a flag read with getDevelopmentMode (e.g. to enable test commands).

Syntax

bool setDevelopmentMode(bool enable [, bool enableWeb = false])

Arguments

enablebool
true = development mode.
enableWebbool, optional = false
Client: browser developer tools.

Returns

true on success.

Example

setDevelopmentMode(true)

See also