DirkScripts
{% embed url="https://streamable.com/p2lc5w ↗" %}
Use this to register a menu, you can make a menu position based, if it is position based it'll open within a defined range of that position, else it will need to be forced with Open/Close functions
luaCore.Menus.Register("someMenuIdentifier", { Pos = vector4(0,0,0,0), --## OPTIONAL: Vec3,Vec4 Distance = 1.5, --## OPTIONAL: integer Options = { --## Similar Format to target systems { icon = "fa-solid fa-dumpster", label = "Main Option", subtext = "This is our main option", --## OPTIONAL action = function(menuFuncs) --## IF NOT ACTION THIS WILL NOT BE A CLICKABLE OPTION menuFuncs.removeFocus() --## Removes focus from this menu should you want to after click --## Do what we want here end, canInteract = function() --## OPTIONAL return true end } } })
Forces the menu with this ID open
luaCore.Menus.Open("someMenuIdentifier")
This will force close this menu
luaCore.Menus.Close("someMenuIdentifier")
This works best with position based menus essentially it will close them and stop it reappearing until you toggle this back on
luaCore.Menus.ToggleHide("someMenuIdentifier", true) --## True will hide

Powered by
All you need for your FiveM server
Copyright © 2026 DirkScripts.
Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.
Daily dig available!
Hey you, you have free digs waiting