View Issue Details

IDProjectCategoryView StatusLast Update
0006047Multi Theft Auto : San AndreasClientpublic2011-08-06 12:29
ReporterMCvarial Assigned Toccw  
Status resolvedResolutionfixed 
Target Version1.1Fixed in Version1.1 
Summary0006047: Function to check wether a player has used alt+tab

In other words a function to check wether MTA is minimized.

TagsNo tags attached.



2011-04-20 20:27

manager   ~~0013210

Because MTA goes to around 200 FPS (for me at least) when minimized this results in scripts which do lots of things with onClientRender using up large amounts of CPU. So this function could be used to stop these things running or alterantively stop MTA from getting such high FPS while minimized.


2011-04-20 21:02

viewer   ~~0013211

you can turn server fps limiter ON and set it to 70 for example


2011-04-20 21:23

manager   ~~0013212

That doesn't work.


2011-04-20 22:48

developer   ~~0013213

Wouldn't it be a better suggestion to just fix the FPS issue itself then?

Not that this doesn't have any other uses, but I think it should rather be some sort of "isGameFocussed" function to check whether MTA has been focussed. This way, it will also detect if a player is using a program other than MTA while in windowed mode, allowing scripters to check for players doing anything that's not MTA related.

That way, the function could still have use.


2011-08-05 10:32

manager   ~~0014146

onClientMinimize and onClientRestore fixes this issue.

Issue History

Date Modified Username Field Change