getDevelopmentMode | Multi Theft Auto: Wiki Skip to content

getDevelopmentMode

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 get the development mode of the client or whole server. For more information see setDevelopmentMode

Syntax

bool getDevelopmentMode ( )

Returns

  • bool: value

Returns true if the development mode is on, false if off.

Code Examples

shared

This command enables / disables the development mode

addCommandHandler("dev",function()
local boolean = not getDevelopmentMode() -- true/false
setDevelopmentMode(boolean)
outputChatBox("DevelopmentMode: "..tostring(boolean))
end)