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

Function

getDevelopmentMode

Server and clientUtilitiesIdentical to MTA:SA

Returns whether development mode is on (setDevelopmentMode).

Syntax

bool getDevelopmentMode()

Returns

true when on.

Example

if getDevelopmentMode() then
    addCommandHandler("tp", function(player, _, x, y, z) setElementPosition(player, x, y, z) end)
end

See also