Difference between revisions of "OnClientMinimize"

From Multi Theft Auto: Wiki
(Undo revision 26829 by X86dev (talk))
(The event is complete now, so there is no need to include it in that category)
Line 1: Line 1:
[[Category:Incomplete Event]]
{{Client event}}
{{Client event}}

Revision as of 11:47, 17 January 2016

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




This example kills any player who minimizes the game.

function handleMinimize()
    setElementHealth( localPlayer, 0 )
addEventHandler( "onClientMinimize", root, handleMinimize )

See Also

Other client events

Client event functions