isMainMenuActive | Multi Theft Auto: Wiki Skip to content

isMainMenuActive

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns whether the user is in the mainmenu or not.

Syntax

isMainMenuActive ( )

Code Examples

client

This example check if the player is afk.

function isLocalPlayerActive ()
if isMainMenuActive() then
setElementData(getLocalPlayer(),"status","afk")
else
setElementData(getLocalPlayer(),"status","playing")
end
end

See Also

GUI Functions