Skip to main content

frakMenu

exports["RiP-Fraktion"]:frakMenu() 

This function returns display status of the fraction x-menu. It can be used in certain inventory scripts with a hot/taskbar which intervene with the fraction x-menu.

Returned Boolean

If the clients x-menu is currently open/active the export returns true. Otherwise it will return false.

Example

local menuOpen = exports["RiP-Fraktion"]:frakMenu() 
if menuOpen then
print("X-Menu is currently open")
else
print("X-Menu is closed")
end