getDevelopmentMode | Multi Theft Auto: Wiki Skip to content

getDevelopmentMode

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

Syntax

getDevelopmentMode ( )

Code Examples

server

This command enables / disables the development mode

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