DirkScripts Logo

Login With FiveM

Login

ℹ️ Menus

Example

{% embed url="https://streamable.com/p2lc5w " %}

Register

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

lua
Core.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
    }
  } 
})

Open

Forces the menu with this ID open

lua
Core.Menus.Open("someMenuIdentifier")

Close

This will force close this menu

lua
Core.Menus.Close("someMenuIdentifier")

ToggleHide

This works best with position based menus essentially it will close them and stop it reappearing until you toggle this back on

lua
Core.Menus.ToggleHide("someMenuIdentifier", true) --## True will hide 

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

Dig Now