DebugSleep

From Multi Theft Auto: Wiki
Revision as of 09:50, 30 April 2017 by Lexr128 (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function is used to set the freeze time for the client/server. This means that all synchronization, frame updating and script's execu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function is used to set the freeze time for the client/server. This means that all synchronization, frame updating and script's execution will stop.

Syntax

bool debugSleep ( int sleep )

Required Arguments

  • sleep : An integer value in milliseconds.

Returns

Returns true if the development mode is enabled and arguments are correct, false otherwise.

Requirements

This template will be deleted.

Example

Example 1: This example would add the command to set the client's freeze time.

Click to collapse [-]
Client
addCommandHandler ( "zzz",
    function ( command, sleep )
        debugSleep ( sleep )
    end
)

See Also