Jack_Black, What do you mean how to install? you put it in your resources folder and building the menu in other resource…
hmm, I am looking for a function to close the menu with a item like “exit” and it should exit, couldn’t figure out how that would work, just need the function to close the menu lmao.
hope some can help! ![]()
edit: alright, found the solution right here:
<3
Glad that helped! Best of luck 
I don’t know what it is but how do i add this to my server?
If you don’t know what this is then you shouldn’t attempt to add it to your server.
They why bother commenting here?
Because if I can figure out how you do it within this version of NativeUI I can then more easily figure it out in the other, but you are a bit late. I found out how to do it on my own anyway.
Great
Hi i have some problems downloading this. I don’t understand how to do it. I am using eup and in the guide it tells me to have this but i downloaded it and nothing happens when i do /eup so i must have done something wrong. Is there like a guide how to download this since im a bit lost.
Can someone tell me how to disable the control E and Dpad right to open the menu?
I got this problem and its fixed for NativeUILua_Reloaded. The only problem i have is that eup needs this script and the fix for NativeUILua_Reloaded did not fix the problem for this script. How can i fix it for this script??
That happens when you press only ones on a key. (left or right does not matter)
Thats in the wallet menu. Some how it switches between buttons so damn fast :S
How can i fix this?
–edit–
oke the recording program cant even see it. Its like you hit the key 2 times in a millisecond.
Does anyone know where can i change the position of the menu ? It’ looks really bad when the chat is active. I don’t want them to overlay each other, i want the menu exactly under the chat. Thanks !
EDIT: FIxed.
Hey man, how to put this

@Frazzle Is it possible to change the index that is hovered when a menu is opened? For example, if I have a list of 200 items and want the 91st or 105th item to be hovered on menu open. I can’t seem to find a function like that but maybe I’m just overlooking something simple.
Edit in the file NativeUI.lua function UIMenu:ProcessControl() to this:
function UIMenu:ProcessControl()
if not self._Visible then
return
end
if self.JustOpened then
self.JustOpened = false
return
end
if self.Controls.Back.Enabled and (IsDisabledControlJustReleased(0, 177) or IsDisabledControlJustReleased(1, 177) or IsDisabledControlJustReleased(2, 177) or IsDisabledControlJustReleased(0, 199) or IsDisabledControlJustReleased(1, 199) or IsDisabledControlJustReleased(2, 199)) then
self:GoBack()
end
if #self.Items == 0 then
return
end
if not self.UpPressed then
if self.Controls.Up.Enabled and (IsDisabledControlJustPressed(0, 172) or IsDisabledControlJustPressed(1, 172) or IsDisabledControlJustPressed(2, 172) or IsDisabledControlJustPressed(0, 241) or IsDisabledControlJustPressed(1, 241) or IsDisabledControlJustPressed(2, 241) or IsDisabledControlJustPressed(2, 241)) then
Citizen.CreateThread(function()
self.UpPressed = true
if #self.Items > self.Pagination.Total + 1 then
self:GoUpOverflow()
else
self:GoUp()
end
self:UpdateScaleform()
Citizen.Wait(175)
while self.Controls.Up.Enabled and (IsDisabledControlPressed(0, 172) or IsDisabledControlPressed(1, 172) or IsDisabledControlPressed(2, 172) or IsDisabledControlPressed(0, 241) or IsDisabledControlPressed(1, 241) or IsDisabledControlPressed(2, 241) or IsDisabledControlPressed(2, 241)) do
if #self.Items > self.Pagination.Total + 1 then
self:GoUpOverflow()
else
self:GoUp()
end
self:UpdateScaleform()
Citizen.Wait(125)
end
self.UpPressed = false
end)
end
end
if not self.DownPressed then
if self.Controls.Down.Enabled and (IsDisabledControlJustPressed(0, 173) or IsDisabledControlJustPressed(1, 173) or IsDisabledControlJustPressed(2, 173) or IsDisabledControlJustPressed(0, 242) or IsDisabledControlJustPressed(1, 242) or IsDisabledControlJustPressed(2, 242)) then
Citizen.CreateThread(function()
self.DownPressed = true
if #self.Items > self.Pagination.Total + 1 then
self:GoDownOverflow()
else
self:GoDown()
end
self:UpdateScaleform()
Citizen.Wait(175)
while self.Controls.Down.Enabled and (IsDisabledControlPressed(0, 173) or IsDisabledControlPressed(1, 173) or IsDisabledControlPressed(2, 173) or IsDisabledControlPressed(0, 242) or IsDisabledControlPressed(1, 242) or IsDisabledControlPressed(2, 242)) do
if #self.Items > self.Pagination.Total + 1 then
self:GoDownOverflow()
else
self:GoDown()
end
self:UpdateScaleform()
Citizen.Wait(125)
end
self.DownPressed = false
end)
end
end
if not self.LeftPressed then
if self.Controls.Left.Enabled and (IsDisabledControlJustPressed(0, 174) or IsDisabledControlJustPressed(1, 174) or IsDisabledControlJustPressed(2, 174)) then
Citizen.CreateThread(function()
self.LeftPressed = true
self:GoLeft()
Citizen.Wait(175)
while self.Controls.Left.Enabled and (IsDisabledControlPressed(0, 174) or IsDisabledControlPressed(1, 174) or IsDisabledControlPressed(2, 174)) do
self:GoLeft()
Citizen.Wait(125)
end
self.LeftPressed = false
end)
end
end
if not self.RightPressed then
if self.Controls.Right.Enabled and (IsDisabledControlJustPressed(0, 175) or IsDisabledControlJustPressed(1, 175) or IsDisabledControlJustPressed(2, 175)) then
Citizen.CreateThread(function()
self.RightPressed = true
self:GoRight()
Citizen.Wait(175)
while self.Controls.Right.Enabled and (IsDisabledControlPressed(0, 175) or IsDisabledControlPressed(1, 175) or IsDisabledControlPressed(2, 175)) do
self:GoRight()
Citizen.Wait(125)
end
self.RightPressed = false
end)
end
end
if self.Controls.Select.Enabled and (IsDisabledControlJustPressed(0, 201) or IsDisabledControlJustPressed(1, 201) or IsDisabledControlJustPressed(2, 201)) then
self:SelectItem()
end
end
Thanks will test it.
Try this:
local godmodeon = false
local invisibilityon = false
local function FirstItem(menu)
local submenu = _menuPool:AddSubMenu(menu,"Player Options", "Staff Player Options", menuX,menuY)
local godmode = NativeUI.CreateCheckboxItem ("God Mode",false, "Give Player God Mode")
local invisibility = NativeUI.CreateCheckboxItem("invisibility",false,"Gives Player invisibility")
submenu:AddItem(godmode)
submenu:AddItem(invisibility)
submenu.OnCheckboxChange = function (sender,item,checked_)
if item == godmode then
godmodeon = checked_
SetEntityInvincible(PlayerPedId(),godmodeon)
elseif item == invisibility then
invisibilityon = checked_
SetEntityVisible(PlayerPedId(),not invisibilityon,0)
SetForcePedFootstepsTracks(invisibilityon)
end
end
end
thanks man it worked
god mode doesnt worl