OnClientMinimize

From Multi Theft Auto: Wiki
Revision as of 13:25, 24 August 2011 by X86dev (talk | contribs) (Undo revision 26827 by MX Master (talk))
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This event is triggered when the local player minimizes the game screen.

Parameters

None

Example

This example kills any player who minimizes the game.

function handleMinimize()
    setElementHealth(getLocalPlayer(), 0)
end
addEventHandler("onClientMinimize",getLocalPlayer(),handleMinimize)

See Also

Other client events


Client event functions