[Release][Dev] NativeUILua

Got bored earlier this week and converted NativeUI to Lua plus i haven’t released anything in a while…

NativeUI in LUA for FiveM.

Original: https://github.com/Guad/NativeUI

Include client_script '@NativeUI/NativeUI.lua' in your __resource.lua to use

Creation Functions

NativeUI.CreatePool() used to handle all your menus

NativeUI.CreateMenu(Title, Subtitle, X, Y, TxtDictionary, TxtName) create a UIMenu

NativeUI.CreateItem(Text, Description) create a UIMenuItem

NativeUI.CreateColouredItem(Text, Description, MainColour, HighlightColour) create a UIMenuColouredItem

NativeUI.CreateCheckboxItem(Text, Check, Description) create a UIMenuCheckboxItem

NativeUI.CreateListItem(Text, Items, Index, Description) create a UIMenuListItem

NativeUI.CreateSliderItem(Text, Items, Index, Description, Divider) create a UIMenuSliderItem

NativeUI.CreateSprite(TxtDictionary, TxtName, X, Y, Width, Height, Heading, R, G, B, A) create a Sprite

NativeUI.CreateRectangle(X, Y, Width, Height, R, G, B, A) create a Rectangle

NativeUI.CreateText(Text, X, Y, Scale, R, G, B, A, Font, Alignment, DropShadow, Outline, WordWrap) create Text


Used with UIMenu with functions :AddWindow(Window) and :RemoveWindowAt(Index)

NativeUI.CreateHeritageWindow(Mum, Dad)


Currently only can be used with UIMenuListItem with functions :AddPanel(Panel) and :RemovePanelAt(Index)

NativeUI.CreateGridPanel(TopText, LeftText, RightText, BottomText)

NativeUI.CreateColourPanel(Title, Colours)

NativeUI.CreatePercentagePanel(MinText, MaxText)


Original Example menu

NativeUILua Example


Grid Panel
Grid Panel Picture
Colour Panel
Colour Panel Picture
Percentage Panel
Percentage Panel Picture


Heritage Window
Heritage Window Picture


While converting it i also added mouse clicking function on the list item arrows and the slider arrows and i also added my slider item which i created for the C# version

In version 2.0.0 i added in Windows and Panels


The only issue i have come across is the description/string measuring to be wonky compared to the original, if anyone finds the problem let me know!


[Release] Vehicle Extra Menu
Help Installing easy admin for ESX, on ZAPHosting
[Release] NativeUI port for pΛ
LEO Clock-in Menu 1.0 (With blips)
[ESX] [Help] How to go back to previous menu?
[Release] Add-On Vehicle Spawn Menu
[HELP] Citizen Interaction Menu
[Release] EUP for FiveM (SERVER SIDED)
Finding the parent sprites/images used in the character creator
[Release] Fire/EMS Clockin Script [With Blips]
[Release] WarMenu - Lua Menu Framework
[Perms, Config] Bodyguard Menu
Help Installing easy admin for ESX, on ZAPHosting
[DEPRACATED] Scene Menu Traffic Policer
[RELEASE] Addon Vehicle Spawn Menu | With Template
Emergency Uniform Pack|Client/Server Sided|Easy Install|UPDATE 5.0 Announcement
[Release] Universal Development Menu (M Menu)
Jeva - Start Somewhere in FiveM Scripting
[Standalone] Spawn Point Selector
[Release] [WIP] ESX 2
Triggering a chat message with a UI/Menu Button
Lbg-char - Standalone character creator
LemonUI: Highly extensible NativeUI replacement
[ESX] MSK WeaponAmmo | Clips, Components & Tints
[ESX/QBCore] MSK Simcard - Change your phonenumber
[Release] SpawnSelector
How can I create a custom client-side menu?
Specific Roleplay Menu Needed
[RELEASE] EUP Serve and Rescue + Law&Order 7.5 (Server Side) Update 1.2 Now With ESX Permissions!
[Release] Add-On Vehicle Spawn Menu
[Release] Add-On Vehicle Spawn Menu
[Help] can some one help me how i can make a menu to buy attachments for weapons
[Release] PolSpeak - Police Vehicle Megaphone
Does anyone know what menu this is?
What is the name of this file?
[Need help] Is there a menu to change clothes at a cop car?
[Standalone] North Yankton [v1.0.0]
I can't find a menù resource
[Release][ESX] Townhall | Lots of option [NativeUI]
[Release] EUP for FiveM (SERVER SIDED)
[RELEASE] EUP Serve and Rescue + Law&Order 7.5 (Server Side) Update 1.2 Now With ESX Permissions!
[Re-Release] Esx polspeak
[ESX] [Modification] EUP for FiveM with ESX job restriction [Server Sided]
Dev nativui help
[ESX] NPC Police Backup Menu [FREE]
Vehicle options menu
FiveM Teleportation Menu
[Release] EUP for FiveM (SERVER SIDED)
[FREE][ESX] Sound points - Trigger soundfiles on coords!

Finally! Been waiting for something like this for ages!

Thanks a lot for this :smiley:

Nice! Finally we have some NaiveUI :tm:

Sweet!! Thank you! OMG!

A gift from the GODS!

Wow, this is the kind of quality releases I like, awesome!!


Multiple ListItems in 1 menu? Without conflicts?

please say yes. :mascot:

Does this also allow for safezone-friendly right aligned menus? :thinking:

Looks good!

1 Like

What were the conflicts with the C# version and i might be able to give you an answer :stuck_out_tongue:

1 Like

Was about to use WarMenu, then this came! THANK YOU SO FKN MUCH!


Just released version 1.0.8 which fixes scaling on resolutions higher than 1080p, thanks to @IceHax for testing


Multiple list items in one menu cause conflict.

got an example/explanation?

1 Like

any way to change the background color of banner, and change location on screen? move to right,bottom, etc ?


I was wondering if it were possible to have the menu automatically update values. For example if I open a item and have a right text on it, the right text would only update if i reopened the menu.

Using UIMenuItem:RightLabel(text) you can instantly update button values. Useful if your button is something like: Value: Right Label

1 Like

How could I add a submenu inside of a sub menu?