OnClientRestore

From Multi Theft Auto: Wiki
Revision as of 02:27, 5 August 2011 by Ccw (talk | contribs) (Created page with "Category:Incomplete Event {{Client event}} __NOTOC__ This event is triggered when the local player restores the game screen from a previously minimized state. ==Parameters=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when the local player restores the game screen from a previously minimized state.

Parameters

bool clearedRenderTargets
  • clearedRenderTargets: A bool specifying whether all script created render targets have been cleared as part of the restore process. Generally, restoring in full screen mode will clear all render targets.

Example

This example shows how to cope with life's little upsets

function handleRestore(clearedRenderTargets)
    if clearedRenderTargets then
        -- Do any work here to restore render target contents as required
    end
end
addEventHandler("onClientRestore",getLocalPlayer(),handleRestore)

See Also

Other client events


Client event functions