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
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
}
}
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
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
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.
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.
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.
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
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.