I am looking for a command please help

can someone help me to find function that is checking if player is in desktop

Can you explain a bit more?

i am looking for command that is check if player focus is on the fivem if yes then return false/true but if the focus isn’t on the fivem then return true/false (the opposite)

If they are tabbed in?

yes if they are minimize in

Not sure if there even is a native for it, doubt it. If you don’t mind me asking, What purpose does this have?

for check if the player is afk

Check this one out, Not created by me. All credit goes to the Mr. Scammer

but i want to check it according to minimize and not coords

Dont think thats possible