View Issue Details

IDProjectCategoryView StatusLast Update
0008651New Feature Requests[All Projects] Generalpublic2019-02-10 15:50
Reporterrbxf234Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0008651: [Request] Additional times when onClientMinimize should be triggered
Description

If you use alt+tab or if you click windows key while playing mta you can get out of the game without onClientMinimize or onClientRestore being triggered at all

if this event isn't supposed to do this what i am requesting, i request a new event for this type of thing.

Steps To Reproduce

get lower resolution in windowed mode (example 800x600 )
put this simple code in the server and watch as nothing happens

function testFunction()
outputChatBox("Minimized")
end
addEventHandler("onClientMinimize",root,testFunction)

function anotherTestFunction()
outputChatBox("Restored")
end
addEventHandler("onClientRestore",root,anotherTestFunction)

TagsNo tags attached.

Activities

AlexTMjugador

2014-11-23 12:34

viewer   ~~0022552

The "onClient..." events are clientside only, so you have to handle them in a clientside script. If you do that in a serverside script it obviously isn't going to work.

Gallardo9944

2014-11-23 12:37

viewer   ~~0022553

I'm pretty sure he meant "on the server" not as "serverside", but "upload it to the server"

rbxf234

2014-11-23 12:48

viewer   ~~0022556

yeah sorry about a typo, this is obviously clientsided but the script is hosted on the server.

myonlake

2018-07-23 19:51

updater   ~~0026859

<i>onClientMinimize</i> and <i>onClientRestore</i> are specifically triggered when <i>minimized</i> and restored from <i>minimized</i> state. Alt+tab in windowed mode does not minimize the window, it just swaps the focus to an another window. This is however not the case when you're fullscreen. It will trigger as it will be minimized and restored.

This issue should introduce two new events if we were to do this.

qaisjp

2019-02-10 15:50

administrator   ~~0027106

Pull request attempted here: https://github.com/multitheftauto/mtasa-blue/pull/185

Issue History

Date Modified Username Field Change