OnClientMinimize: Difference between revisions
Jump to navigation
Jump to search
(The event is complete now, so there is no need to include it in that category) |
m (→Parameters) |
||
Line 4: | Line 4: | ||
==Parameters== | ==Parameters== | ||
No parameters. | |||
==Example== | ==Example== |
Revision as of 01:56, 7 April 2018
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
- onClientMTAFocusChange
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled