OnClientRestore
From Multi Theft Auto: Wiki
This event is triggered when the local player restores the game screen from a previously minimized state.
Parameters
bool didClearRenderTargets
- didClearRenderTargets: A bool specifying whether all render targets have been cleared as part of the restore process. Generally, restoring in full screen mode will clear render targets.
Example
This example shows how to cope with life's little upsets
function handleRestore( didClearRenderTargets ) if didClearRenderTargets then -- Do any work here to restore render target contents as required end end addEventHandler("onClientRestore",root,handleRestore)
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