FiveM - Creating a Menu with NativeUI Lua

  Рет қаралды 161,303

Jeva

Jeva

Күн бұрын

NativeUI: github.com/FrazzIe/NativeUILua
Our Code: github.com/jevajs/Jeva/tree/m...
Timestamps
0:00 - Intro
0:45 - Project setup
3:47 - Creating menu pool
5:30 - Creating a checkbox item
9:01 - Creating an item
11:34 - Creating a list item
15:14 - Creating a submenu
16:17 - Using an item in a sub menu
17:50 - Using a slider in a sub menu
21:44 - Initializing the all the menus
22:30 - Showing menu on keypress (to client)
25:00 - In-game test
Zua explains how to create a GTA 5 Menu using Frazzle's NativeUILua (NativeUI port to Lua)
Need help? Join the discord - / discord
Subscribe for more!
Twitter: / jevajs
GitHub: github.com/jevajs
Discord: / discord

Пікірлер: 165
@thijjsen
@thijjsen Күн бұрын
This version is already old, the new version of the mod menu for GTA with anti-ban is already on my channel
@__Crysis
@__Crysis 5 жыл бұрын
Damn, this is much easier than scripting every single menu yourself using the fivem natives... I might actually use this instead of my menu system. Thanks!
@13Stewartc
@13Stewartc 4 жыл бұрын
Pretty helpful, thanks !
@nuggassassin
@nuggassassin 4 жыл бұрын
GREAT videos man...thank you SOOOO MUCH for sharing. Can you do a video on how to make a store inventory ( add items to buy) please? your videos are the best ive found on just the points
@luca_4342
@luca_4342 4 жыл бұрын
esx_store my friend
@micspamgod2324
@micspamgod2324 3 жыл бұрын
Thanks. :D
@BertoBluFyre
@BertoBluFyre 3 жыл бұрын
Thank you
@cianrainsford39
@cianrainsford39 5 жыл бұрын
For your next video could you create a simple police radar script ( like the familyRP one) Think this would be good since there isn’t one like that out there! Keep up the great videos :)
@cxpp6822
@cxpp6822 5 жыл бұрын
Make one yourself
@OfficialRDB
@OfficialRDB 5 жыл бұрын
Is it possible to replace the default esx menu with this or do you need to re-write all the scripts that use a menu ?
@NerxaOG
@NerxaOG 4 жыл бұрын
I need to figure out how to add a custom header. The basic esx_Defualt_menu has images but there is no way to actually use them and I cant find a way past it.
@yankobig8612
@yankobig8612 4 жыл бұрын
Lua and Python is what I use to make menus.
@ENTBRO
@ENTBRO 4 жыл бұрын
Do you have any videos on how to make a client sided menu? I really need a menu that allows me to hear players while im spectating for administrative purposes but all i have been able to find are server sided menus. my idea is attaching my player model to the person im spectating and then making sure my z cord is below the map with GET_GROUND_Z_FOR_3D_COORD -3
@teller-1948
@teller-1948 5 жыл бұрын
THANKS BRO ❤️
@mkprq8653
@mkprq8653 4 жыл бұрын
ياولد
@mkprq8653
@mkprq8653 4 жыл бұрын
مافهمت
@mkprq8653
@mkprq8653 4 жыл бұрын
يعني المود نينيو اقدر اشغله على اي سيرفر صح
@mkprq8653
@mkprq8653 4 жыл бұрын
مينيو
@teller-1948
@teller-1948 4 жыл бұрын
Mkpr Q8 لا هذا زي السكربت تركبة على سيرفرك انت فقط
@Yorgarazgreece
@Yorgarazgreece 4 жыл бұрын
I'm trying to bodge a way to implement number selection by directly manipulating UIMenuDynamicListItem's contents depending on where index is targeting. Any better suggestions? Is there a component to allow you to type stuff in? edit: on a second thought. i am stupid. I could just put a regular UIMenuItem and on left-right just change its value. i'll do that
@jayc1738
@jayc1738 4 жыл бұрын
If I want to have a list of vehicles to spawn how do I do that?
@outskilledyagaming9996
@outskilledyagaming9996 Жыл бұрын
do you know how to change the blue title saying main menu to some other stuff? like pic as background or other textur dic names to use in it
@immarc4785
@immarc4785 4 жыл бұрын
Hello, do you know how to do that when you open the menu the screen does not turn you around?
@teflonartillery
@teflonartillery 4 жыл бұрын
Quick question, how do we add add on cars ?
@theeraser6205
@theeraser6205 5 жыл бұрын
how do you link a picture to the header ?
@realdebugg
@realdebugg 5 жыл бұрын
I made both the help script and this one but none of them work...?
@chronotic9793
@chronotic9793 4 жыл бұрын
This is beyond cool man. is there a way to enable the default police? I only play local with very few players.
@tayronecanali2070
@tayronecanali2070 4 жыл бұрын
Velho se tivesse BR assim estariamos com servidores top, vc esta de parabéns, Obrigado!!
@Master131
@Master131 4 жыл бұрын
eae manin, to pensando em fazer tuto igual esse cara ai, to com um projeto de mod menu
@shruog1045
@shruog1045 4 жыл бұрын
eae mano eu to montando uma comunidade pra brs que queiram trocar informações sobre desenvolver scripts sem ficar pedindo intuito é criação add discord Shruog#2358
@WESLEIJR
@WESLEIJR 4 жыл бұрын
eu estava pensando em usar a base desse cara para criar um mod menu de hack, assim fica mas facil criar um ant x descente pq só tem lixos nos servers
@Master131
@Master131 4 жыл бұрын
@@WESLEIJR kkk ent
@WESLEIJR
@WESLEIJR 4 жыл бұрын
@@Master131 criei um mod menu já estou com ele no meu .lua falta um executor mas n sei onde e nem como fazer um executor ou injetor de .lua
@shibbyW
@shibbyW 5 жыл бұрын
Not opening! Please help
@abrooksy172
@abrooksy172 3 жыл бұрын
how do I change the blue background on the menu?
@XMNF
@XMNF Жыл бұрын
Hey when i activate the menu ingame my camera is spinning around the character like crazy. How to fix this?
@z9wins
@z9wins 4 жыл бұрын
Is this create is for admin mod menu?
@0324bence
@0324bence 4 жыл бұрын
Is there a way to make a command for opening the menu?
@SebastienGaming
@SebastienGaming 4 жыл бұрын
Hey Jeva, I have a quick question. My question is about "ThirdItem". If I wanted to give the player "weapon_rpg" but wanted it to show up in the menu "RPG", how would I do that? Thanks!
@nickaugi275
@nickaugi275 4 жыл бұрын
substring
@layman8998
@layman8998 4 жыл бұрын
Is there a way to change the keyboard shortcut for opening the menu?
@ArchieAdams7
@ArchieAdams7 3 жыл бұрын
YES
@ksuiegaming9346
@ksuiegaming9346 2 жыл бұрын
I made a menu with two list buttons. Only the bottom one works, if I change their position the new bottom one is the only one that works. How do you make both list buttons work? No matter which one is on top the top one doesn't work. I know the code is good for the functions because whichever one I put on bottom works, but then the top one doesn't work.
@ldracarys9905
@ldracarys9905 Жыл бұрын
do u know how to adjust the scrolling in-menu speed ?
@hero_nuke3m170
@hero_nuke3m170 4 жыл бұрын
I followed this tutorial line by line just to get a menu in my server, and made sure to ensure menu and NativeUI in my server.cfg and the menu still wont work can someone please help
@sven-_-_-1934
@sven-_-_-1934 5 жыл бұрын
How can i make a Submenu in a Submenu?
@Kar2m
@Kar2m 3 жыл бұрын
how can i made multiple key press to open the menu
@thebarkinglynx1754
@thebarkinglynx1754 4 жыл бұрын
Can someone help me? When I open up the menu and close it will reopen but when I open the menu and click on an option. it doesn't do anything and the actions don't occur. Then when I click the key to open the menu. It doesn't do anything. This happened to most of scripts that I made using the tutorials.
@locopengu9636
@locopengu9636 3 жыл бұрын
How can i create more then 1 Clickable Item in the list? Like Waypoint 1 Waypoint 2 Waypoint 3 and so on? If i copy paste this it works only the last one. I don't understand.
@elianullfuenfeins106
@elianullfuenfeins106 3 жыл бұрын
Creating script environments for menu Error parsing script @menu/menu.lua in resource menu: @menu/menu.lua:74: function arguments expected near 'Citizen' Failed to load script menu.lua Can somebody help me?
@nevos6231
@nevos6231 4 жыл бұрын
Can you show how to create vehicle controls in NativeUI?
@LuKa-qr6tb
@LuKa-qr6tb 3 жыл бұрын
which button to open the menu?
@Luk3airsoft
@Luk3airsoft 2 жыл бұрын
How I can change the layout? (background image)
@vjudy
@vjudy 11 ай бұрын
i want to create clothing Ui menu like "DPClothing" can u help with that ?
@w3nax69
@w3nax69 4 жыл бұрын
Not working, help :(
@kzfka
@kzfka 4 жыл бұрын
I have a problem. Well, whenever I get a weapon, then, I cant open menu back. Any idea?
@kzfka
@kzfka 3 жыл бұрын
@Man Diggi Nope, I think it might be something with my ISP
@tamir812
@tamir812 3 жыл бұрын
is there a way to create a sub menu in a sub menu?
@ventu335
@ventu335 4 жыл бұрын
can you give lua executor ?
@ErikRvss
@ErikRvss 4 жыл бұрын
how do i open menu?
@sven-_-_-1934
@sven-_-_-1934 5 жыл бұрын
How can i make a Submenu in a Submenu????
@werneroberlechner5800
@werneroberlechner5800 3 жыл бұрын
How can i do it with executeCommand?
@rebel7298
@rebel7298 4 жыл бұрын
how did you inject
@adams74793
@adams74793 3 жыл бұрын
How could I make one for LSPD like cuffing etc?
@Ruippinen
@Ruippinen 5 жыл бұрын
A tutorial how to make a hud for esx. And how to modify your chat, like how to remove the background, etc
@Adam-fn7uy
@Adam-fn7uy 5 жыл бұрын
The chat module is just a CEF UI which is basically a web page. All you need to do is know a bit of CSS and edit the styling for it if I remember correctly
@mihai767
@mihai767 4 жыл бұрын
How i can run this file? Help me...
@zhptm9488
@zhptm9488 4 жыл бұрын
@jeva is it possible you could create something like this for me and im willing to pay for it
@vrajpatel6277
@vrajpatel6277 4 жыл бұрын
if i make the menu will it be undetectable
@scoop819
@scoop819 4 жыл бұрын
Can you use this in online
@mrminimac999
@mrminimac999 5 жыл бұрын
Will there be tutorials on C #?
@lil_kiddo6366
@lil_kiddo6366 4 жыл бұрын
There isn't the ones there were, we're all scams😟😔
@Hondatuningboy45
@Hondatuningboy45 5 жыл бұрын
i would like more cars how can i do this?
@valley5701
@valley5701 4 жыл бұрын
What to press to get up
@ColeG__1
@ColeG__1 2 жыл бұрын
Is there anyway you can change the font of the writing in the menu ?
@natharon
@natharon 2 жыл бұрын
no
@jaloyz3190
@jaloyz3190 4 жыл бұрын
It doesnt work for me : / pls help
@felipebugtv8823
@felipebugtv8823 5 жыл бұрын
you can do a tutorial on how to do jobs for the server for example police cross red etc plis
@jitsuplays4841
@jitsuplays4841 4 жыл бұрын
I need jobs too!
@alizgeer8010
@alizgeer8010 4 жыл бұрын
how to put button to open
@AllyaM33
@AllyaM33 5 жыл бұрын
How do i change the position of the menu ? Please help !
@kofkof1874
@kofkof1874 5 жыл бұрын
Do you know Js and html, i want to learn how to do painels with buttons in fivem. You explain very well btw. :)
@lukas916
@lukas916 3 жыл бұрын
how i can create an inventory
@vur0z782
@vur0z782 4 жыл бұрын
This was cool thanks liked and subbed maybe you can show how to add money ? Online
@appnanamilton9163
@appnanamilton9163 3 жыл бұрын
TriggerServerEvent'TruckerJob''9999999" something like that
@purplemist4078
@purplemist4078 3 жыл бұрын
Works thus for fivem?
@hksniperkid3599
@hksniperkid3599 4 жыл бұрын
where is the server folder?
@knitro1024
@knitro1024 4 жыл бұрын
Can you help me for some reason when i press E the menu wont open i made sure i put it in the cfg and resources please help
@emanuele1800
@emanuele1800 3 жыл бұрын
I have your problem
@elianullfuenfeins106
@elianullfuenfeins106 3 жыл бұрын
@@emanuele1800 Did you start NativeUI? If not, go into the server.cfg and type "start NativeUI"
@quatreunneuf
@quatreunneuf 3 жыл бұрын
Is there anyway to make it stop moving around when you open the menu and remove the cursor as well?
@Andrew-xh7oj
@Andrew-xh7oj 4 жыл бұрын
how to run it?
@TheKev2666
@TheKev2666 5 жыл бұрын
by anychance you would give a lesson on how to make esx_menu into NativeUILua ? :D
@cxpp6822
@cxpp6822 5 жыл бұрын
Just convert it mate
@nevos6231
@nevos6231 4 жыл бұрын
How to create a Menu with a loop?
@pashajackjon9064
@pashajackjon9064 3 жыл бұрын
how to just update a menu that was good/working and now it's detectable on most servers?
@imkamikazi7386
@imkamikazi7386 3 жыл бұрын
This is not supposed to help cheaters.
@NazriGENFIL
@NazriGENFIL 4 жыл бұрын
how i can open the menu with command ?
@gray9392
@gray9392 4 жыл бұрын
Citizen.CreateThread(function() while true do Citizen.Wait(0) _menuPool:ProcessMenus() RegisterCommand("openmenu"--[[your command here]], function(source, args, rawCommand) mainMenu:Visible(not mainMenu:Visible()) end, true) end end)
@480eryandayusuf9
@480eryandayusuf9 5 жыл бұрын
Can you show how to instal mod like car,maps,cloth,peds,etc pls
@alexbanz
@alexbanz 4 жыл бұрын
Eryanda Yusuf following
@jay.5749
@jay.5749 2 жыл бұрын
can you do a tutorial how to create a admin menu?
@serbanratiu9879
@serbanratiu9879 4 жыл бұрын
Im pressing e but nothing happens
@RidingWTyler
@RidingWTyler 5 жыл бұрын
The issue I come across that I was hoping this video would explain (Thats the reason I came) is that if I have the same item type of CreateItem or CreateListItem and times that by two or more you can only use the last one in the list. My way of fixing this is using Sub Menus however thats not that great of a fix due to certain Sub Menus like ones for the player where you use a Item (Press enter and done type thing) you can only have one of them and the others dont work. I was creating a Player Options Menu so that if you wanted to heal or give yourself armour you can... but for some reason NativeUI restricts access of two Item Types in the same menu or sub menu. The Item Types have to be completely separate of each other. As in if you have a sub menu and have three List Item types the only usable one is the last one. Same for any other Item Types.
@Jevajs
@Jevajs 5 жыл бұрын
I personally fixed that issue by adding the conditional to check if the item is equal to item that was clicked. I integrated this in the video.
@RidingWTyler
@RidingWTyler 5 жыл бұрын
@@Jevajs Example Code: function Heal(menu) local heal = NativeUI.CreateItem("Heal Player", "Heals Player Ped") menu:AddItem(heal) menu.OnItemSelect = function(sender, item, index) if item == heal then SetEntityHealth(PlayerPedId(), 175) notify("~g~Player Healed.") end end end --------------------------------------------------------- --------------------------------------------------------- ---------------------------------------- function Armour(menu) local armour = NativeUI.CreateItem("Get Armour", "Gives Player Ped Armour") menu:AddItem(armour) menu.OnItemSelect = function(sender, item, index) if item == armour then SetPedArmour(GetPlayerPed(-1), 50) notify("~g~Player Got Armour.") end end end That is what I got. The only one that works is the one that I add to the menu last. So if I say Heal(mainMenu) then Armour(mainMenu) Armour is the one that works but if I do it vice versa then Heal is the one that works.
@Jevajs
@Jevajs 5 жыл бұрын
Using that method for listening to 'item events' will only work in submenus ( i think). Try adding the menu after the item event and chaning it from menu.OnListendjuduehe to like heal.OnChangefieuje
@RidingWTyler
@RidingWTyler 5 жыл бұрын
@@Jevajs Yup literally just found the solution to it. This is how I did it. function Options(menu) local submenu = _menuPool:AddSubMenu(menu, "Players Menu", "Sub Menu for Player Related Options") local armour = NativeUI.CreateItem("Get Armour", "Gives Player Ped Armour") local heal = NativeUI.CreateItem("Heal Player", "Heals Player Ped") submenu:AddItem(heal) submenu:AddItem(armour) submenu.OnItemSelect = function(sender, item, index) if item == armour then SetPedArmour(GetPlayerPed(-1), 50) notify("~g~Player Got Armour.") else if item == heal then SetEntityHealth(PlayerPedId(), 175) notify("~g~Player Healed.") end end end end
@Skinnycat-mk4zl
@Skinnycat-mk4zl 3 жыл бұрын
uhh i dont have the server file
@greekbo2manager
@greekbo2manager 5 жыл бұрын
how i can create teleport menu?
@fakefedora8104
@fakefedora8104 3 жыл бұрын
just skid other code and remake it so you can understand
@johnordonez4435
@johnordonez4435 3 жыл бұрын
im not sure why but im only able to call the menu once per session. I 've checkd the code and im not too sure where im going wrong. Help please and thak u
@johnordonez4435
@johnordonez4435 3 жыл бұрын
Never mind got it to work. thanks for the video
@MonsterZockerHD
@MonsterZockerHD 5 жыл бұрын
Create a weapon attachment menu
@falconrain7529
@falconrain7529 5 жыл бұрын
I'd like to make a menu that allows for common bank functions, or inventory functions to allow players to give money or items from themselves to another person and it grabs values from their sql database tables to determine what they can send and how much of what to another player using either player id number or target player, ect. Would be a super useful tutorial.
@moorezy5848
@moorezy5848 2 жыл бұрын
have you done this yet?
@tayronecanali2070
@tayronecanali2070 4 жыл бұрын
couldn"t load resource menu FXserver, Does anyone know how to solve?
@vili627
@vili627 4 жыл бұрын
__resource.lua
@RailedFromBehind
@RailedFromBehind 3 жыл бұрын
any war menu tuts? :0
@lukavekichannel
@lukavekichannel 3 жыл бұрын
I dont want to edit how i make it default without editing my game is fucked up now only gives me choises that i edited
@eternal-studios_official
@eternal-studios_official 2 жыл бұрын
how do i change weather with a nativeUI?
@natharon
@natharon 2 жыл бұрын
use fivem natives
@sbtuk731
@sbtuk731 3 жыл бұрын
Does this still work? Because after following this video fiveM fails to recognise the menu as a resource.
@KashR6
@KashR6 3 жыл бұрын
same
@sbtuk731
@sbtuk731 3 жыл бұрын
@@KashR6 I mean I don't want to "be that guy" but maybe folks who make tutorials, should add a note saying the tutorial is obsolete, if they haven't time to make a new one, assuming everything is followed correctly.
@bryanswaggbeast8194
@bryanswaggbeast8194 5 жыл бұрын
Why whenever I open the menu, it spins crazy? Is there a way to get rid of it?
@clementdolo6339
@clementdolo6339 4 жыл бұрын
Hi, i got the same problem. Do you have a solution now ?
@d4rk_z1on81
@d4rk_z1on81 3 жыл бұрын
Question this tutorial works also on the story mod on GTAV? using Visual Studio?
@conquestor4779
@conquestor4779 3 жыл бұрын
it should work. The only way to find out though, is by trying.
@st1opaa520
@st1opaa520 3 жыл бұрын
"Activate Windows".... WHYYYY
@nest_karam
@nest_karam 7 ай бұрын
how to create a staff menu
@j4ncool620
@j4ncool620 3 жыл бұрын
Not a virus?
@tiimmdll
@tiimmdll 4 жыл бұрын
does anyone know how to make a menu where you can show your ID and how to show interaction menu? answer pls
@ytgoatedup5117
@ytgoatedup5117 2 жыл бұрын
this did not work for me
@damircrnkic6684
@damircrnkic6684 5 жыл бұрын
Bruh please activate windows I been waiting for like three years on you homie
@martinarwashan4261
@martinarwashan4261 5 жыл бұрын
cmon bruh how do i get rid of activate windows
@Joseph-oj1dt
@Joseph-oj1dt 5 жыл бұрын
@@martinarwashan4261 You might be making a joke, but I cannot tell... For that thing to go away, you need to buy a windows 10 license.
@Kickasstom90
@Kickasstom90 4 жыл бұрын
@@martinarwashan4261 the only way now is to buy a license look online ul get one there
@vinit7164
@vinit7164 4 жыл бұрын
@@martinarwashan4261 Just download KMSpico make sure it's not a virus run it...TADA your windows has been activated
@nevos6231
@nevos6231 4 жыл бұрын
Just getting an error that says: Attempt to index a nil value (global 'NativeUI')
@komodo.dragons.are.very.cool99
@komodo.dragons.are.very.cool99 4 жыл бұрын
Have you downloaded the NativeUI for Lua and put it in the resources. If you've done that, be sure to include it in your config file.
@jvyh.3896
@jvyh.3896 4 жыл бұрын
how to add drugs?
@ba6ybliq348
@ba6ybliq348 2 жыл бұрын
any one wanna send me the menu?
@manusoftar
@manusoftar 3 жыл бұрын
First of all consider using an activated version of Windows (I'm not even saying you should buy it, but have it activated 😉), second let me ask why on earth you decided to make this using LUA rather than C#??
FiveM Scripting 25 - Vehicle Mods and Upgrades
33:59
Jeva
Рет қаралды 57 М.
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 74 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 104 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 17 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 6 МЛН
D5 Render - Full Beginner Course
3:27:49
Gediminas Kirdeikis
Рет қаралды 470 М.
How to make any Addon car Fivem Ready! | Updated 2023 FREE | OIV
7:49
Kaip sukurti FiveM serverį #1 LocalHost serveris
14:30
You Can't Hunt with That in FivePD!
34:45
Bay Area Buggs
Рет қаралды 627 М.
How to Create HUDs and UIs using NUI (Zero to Hero Episode 7)
25:28
HOW TO MAKE FIVEM RP SERVER (2022) | GTA RP
14:13
DaMightyLamb
Рет қаралды 29 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 110 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 6 МЛН