OnClientMinimize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
__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.
==Parameters==
''None''


==Example==
==Example==

Revision as of 22:30, 10 August 2011

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