Menu UI with callbacks

Hey everyone. Another script coming your way!
This one is a menu with button callbacks and submenus, you can pass any data through the callback

ezgif.com-gif-maker

Example of the menu data structure:

local menuData = {
        {
            type = 'title',
            clickable = false,
            text = 'My Test Menu'
        },
        {
            type = 'button',
            clickable = true, --set this to true if the user is able to click the button
            text = 'Return a value',
            value = 'test value',
            func = function(value)
                print(tostring(value))
            end
        },
        {
            type = 'button',
            clickable = true, --set this to true if the user is able to click the button
            text = 'Return an object',
            description = 'Click me',
            value = { arg1 = 'test value', arg2 = 1 },
            func = function(obj)
                print(tostring(obj))
            end
        },
        {
            type = 'button-sub',
            clickable = true, --set this to true if the user is able to click the button
            text = 'Open chain menu',
            description = 'Click me',
            func = function(value)
                print('Opened a chain menu')
                TriggerEvent('fpwn-menu:client:opentestmenu1')
            end
        }
    }

Features:

  • New UI (better i hope)
  • Pre configured button types
  • Checks if menu instance already exists
  • Animations
  • Callbacks with any sort of data you wish to pass
  • Easily customizable
  • Easy to use

More info github

Btw nothing from nh-context was used to make this script, contrary to what some clueless kids are saying, if you don’t believe it just check the github :wink:

2 Likes

Hi, just a suggestion:
“Simple” + Link to Tebex never sounds well.

well it’s simple for me… I gotta make a living somehow, thanks for the tip though

for an animation will be paid? my god!!!

make one with your own hands, “don’t steal code” :upside_down_face:

Friend you only pay if you want to, there are free resources out there if people want to use them go ahead.
This is made with my own code, I don’t use third party resources on my servers, so you should think twice about making those “dont steal code” sad comments

How much of a depressive dude you must be?! I saw with my own eyes this dude writing the code on this script and you come here to talk shit. FiveM community is way better without people like you. Get lost

1 Like

Having seen this first hand on my own resources, seeing people calling out “stolen code” when a resource does the same thing but ISNT STOLEN is super annoying. Please, PLEASE check yourself. People are allowed to make resources that do the same thing as other resources, as long as they write the code themselves.

1 Like

I mean I am surprised people didn’t make comparisons saying I stole X Y and Z when I released my menu looool

Did you legit just take nh_context / zf_context, move it and make it uglier + add callbacks?
Cause you can do that in legit 10 lines. The callback is 3 lines, 1 line if you wanna do it worse.
Making it uglier will just be removing line and moving it will be changing some values.

I dont see how that is worth the price sadly.

Thank you for that, now please take your negative opinions elsewhere. If it isn’t worth the price to you, it is to someone else. Simply don’t buy it, nobody is forcing you to.

1 Like

Sure mate go ahead and do it in 10 lines if you’re actually able to, and if you are I’ll make the script free and you can teach me some stuff. Gotta be able to back up a big mouth

1 Like

I am here if you need a hugging friend, I can feel a lot of negativity in your life.
Let me know if I can be of any help.
Stay safe my friend.

Sure mate, wait a minute then! :slight_smile:

Here you go,
Same features as your one (if not even more), for free.

And YOU are the author! Here, talking shit on other people’s resources!

Hahahaha.

EDIT: If your entire motivation in making resources is to stick it to people who are trying to make a few bucks to learn coding, you are really not a good person. I will reiterate: No one gives a fuck whether YOU think its “worth the money” or not.

The author of this release told me to back it up.
I did exactly as he said and wanted me to do. :slight_smile:

I thought you said 10 lines mate… LUL But I’ll keep my word anyways

you’re cocky I like it :wink:

go ahead check it out, it’s public now, go check if your “10 lines” has more features