Difference between revisions of "OnClientMinimize"

From Multi Theft Auto: Wiki
(Undo revision 26829 by X86dev (talk))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Incomplete Event]]
 
 
{{Client event}}
 
{{Client event}}
 
__NOTOC__  
 
__NOTOC__  
 
This event is triggered when the local player minimizes the game screen.
 
This event is triggered when the local player minimizes the game screen.
 +
{{Note | This event only triggers from fullscreen minimize. [[onClientRestore]] can trigger even if this event didn't.}}
  
 
==Parameters==
 
==Parameters==
''None''
+
No parameters.
  
 
==Example==
 
==Example==

Latest revision as of 11:55, 3 January 2020

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

[[{{{image}}}|link=]] Note: This event only triggers from fullscreen minimize. onClientRestore can trigger even if this event didn't.

Parameters

No parameters.

Example

This example kills any player who minimizes the game.

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

See Also

Other client events


Client event functions