shutdown | Multi Theft Auto: Wiki Skip to content

shutdown

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 shuts down the server.

Syntax

shutdown ( )

Code Examples

server

This command shuts down the server on request

addCommandHandler ( "shutdown", function ( player, command, reason )
if ( hasObjectPermissionTo ( player, "function.shutdown" ) ) then
shutdown ( reason or "" )
end
end )