is there a certain error code?
i will look over my code and see
is there a certain error code?
i will look over my code and see
@JSRPOwner i may have fixed the menu you can try the download again this time its named menu-v2.zip so you will have to rename it to menu and add it then open up the menu/ui.js and change:
// Send data to lua for processing.
function sendData( name, data ) {
$.post( "http://m-menu/" + name, JSON.stringify( data ), function( datab ) {
if ( datab != "ok" ) {
console.log( datab );
}
} );
}
to
// Send data to lua for processing.
function sendData( name, data ) {
$.post( "http://menu/" + name, JSON.stringify( data ), function( datab ) {
if ( datab != "ok" ) {
console.log( datab );
}
} );
}
Yep no problem, just make sure the credits of all the script authors are there.
ok and im not messing with the credits inside your files i will just add modified by rhys19 in there and keep the rest of your credits in the files
How do i stop it from closing after selecting an option?
Comment the second to last line here: I added a comment in the line.
RegisterNUICallback( "ButtonClick", function( data, cb )
if ( data == "button1" ) then
chatPrint( "Button 1 pressed!" )
elseif ( data == "button2" ) then
chatPrint( "Button 2 pressed!" )
elseif ( data == "button3" ) then
chatPrint( "Button 3 pressed!" )
elseif ( data == "button4" ) then
chatPrint( "Button 4 pressed!" )
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() --***Commenting this line will leave the menu open after button is pressed
end )
Works perfect thanks again decon.
How can I change the name of the resource just wondering?
yeah i tried to explain it well and half the people are still complaining like “MY MENU WONT EXIT” im like did you read the description
Is the one you released the one that I can change the name on?
you can but you have to read the end of description on how to do it
What number is the key f6
Thanks that will be great for the future aswell
can someone help me put stuff with the action menu pls
How would I go about having a back button but instead of reseting the menu it just went to a certain menu? (Within ActionMenu [1.0.0])
Also how would I make it so that when I push button it doesnt shut the menu down. and yes my buttons are working.
Please read or search in this post before asking something next time.
Add this to your submenu for a back button:
<button onclick="ResetMenu()">Home</button>
And for the menu to stay when clicking a button remove this code at the bottom of your button actions (lua file)
ToggleActionMenu()
If you still require assistance, don’t hesitate to ask someone or PM me.