OnClientMinimize
From Multi Theft Auto: Wiki
This event is triggered when the local player minimizes the game screen.
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
- onClientChatMessage
- onClientConsole
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMinimize
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- triggerLatentServerEvent
- triggerServerEvent
- wasEventCancelled