OnClientMinimize

From Multi Theft Auto: Wiki
Revision as of 02:18, 5 August 2011 by Ccw (talk | contribs) (Created page with "Category:Incomplete Event {{Client event}} __NOTOC__ This event is triggered when the local player minimizes the game screen. ==Example== This example kills any player who ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This event is triggered when the local player minimizes the game screen.

Example

This example kills any player who minimizes the game.

function handleMinimize()
    killPed(getLocalPlayer(),getLocalPlayer())
end
addEventHandler("onClientMinimize",getLocalPlayer(),handleMinimize)

See Also

Other client events


Client event functions