[Rewritten][Release]NativeUI M-menu [3.1]

Lol will you update the link?

i will when i get it fixed.

1 Like

Sweet! I’ll keep checking back, thanks!

if you would like to add them manually here:

--[[------------------------------------------------------------------------
	ActionMenu HTML Callbacks
	This will be called every single time the JavaScript side uses the
	sendData function. The name of the data-action is passed as the parameter
	variable data. 
------------------------------------------------------------------------]]--
RegisterNUICallback( "ButtonClick", function( data, cb ) 
	if ( data == "handsup" ) then 
		handsUp()
                
	elseif ( data == "trunk" ) then
   	 TriggerEvent( 'Trunk' )
                
	elseif ( data == "trunkclose" ) then
   	 TriggerEvent( 'TrunkClose' )
                
	elseif ( data == "engine" ) then 
	       TriggerEvent( 'Engine' )
                
    elseif ( data == "button6" ) then
            TriggerEvent( 'KneelHU' )

    elseif ( data == "radar" ) then 
        TriggerEvent( 'wk:radarRC' )

    elseif ( data == "cuff" ) then 
        TriggerEvent( 'Handcuff' )

    elseif ( data == "gh" ) then 
        TriggerEvent( 'gunHolster' )
		
	elseif ( data == "r" ) then
        TriggerEvent ( 'Radio' )

	elseif ( data == "exit" ) then 
		-- We toggle the ActionMenu and return here, otherwise the function 
		-- call below would be executed too, which would just open the menu again 
		ToggleActionMenu()
		return 
	end 

	-- This will only be called if any button other than the exit button is pressed
	ToggleActionMenu()
end )
1 Like

The buttons dont work and the menu doesnt close after its opened.

Thanks man! Ill try it

That’s what he is fixing

oh okay cool. I cannot wait! This menu seems like it is going to be awesome when it is complete

just out of curiosity are you pressing esc or pressing the exit button the exit button for some reason only works for me

I can try the escape, but exit button doesn’t work.

UPDATE: Escape button doesn’t work.

Screenshots of what this does? Helps end users understand what they are doing. (and no I do not mean code screenshots)

is this updated and working?

i am currently making a github for it.

1 Like

Awesome! Nice work on this man, Will be great when its fully functional :smiley:

1 Like

Can’t wait man thank you so much! Saved me so much time :smiley:

1 Like

Not sure if this is an isolated incident, but I’m experiencing a few issues with some of the buttons.

In particular, these are the buttons that don’t work.

Engine On/Off
Opens Trunk
Closes Trunk
Rolls down window
Opens Doors

Equip Stun Gun
Cuff Player
Drag Player
Put player in vehicle
Take player out of vehicle
Hold on to gun holster

Any of the Equip Weapons

I think that’s over half, if its not just me, I would LOVE it if you could fix this. :slight_smile:

for some reason i get stuck in the menu so idk if its a me problem but probably needs to be fixed but other then that great job!

Like i have explained i am trying to work on a fix! Please be patient

the actions work for me :wink: i will upload it from my vps and modify it on my pc and upload it and see if it fixes your issues! and make sure next time to post issues on our github!