Simple and Easy to use Context Menu (Good replacement for ESX Menu Default)
I really loved the NeroHiro Context that he made so I've ended up re-creating a context menu like he had made because he unfortunately stop support it.. Hope you enjoy this "re-creation" of the nh-context with a new design that is more Luxurious version of it.
To Install the ZF Context Menu, you need to down it .
After you've downloaded the zf_context, install it in '[resource]/[local]/zf_context'.
Don't forget to start the resource in your server.cfg with
ensure zf_context
This is a default menu to show you how it works. This is only for exemple.
RegisterCommand('testcontext', function()
local myMenu = {
{
id = 1,
header = 'Header Title',
txt = ''
},
{
id = 2,
header = 'Button',
txt = 'Click here for help',
params = {
event = 'takemymoney',
isServer = true,
args = {
amount = 500
}
}
}
}
exports['zf_context']:openMenu(myMenu)
RegisterNetEvent('takemymoney')
AddEventHandler('takemymoney', function(data)
print('You have took ' .. data.amount .. '$ from me... 😭')
end)
end, false)
Item Options
{
id = <integer> (need to be unique per menu),
header = <string>,
text = <string>,
params = <array> {
event = <string> '',
isServer = <boolean> (optional),
args = <array> {
your = 'variable',
you = 'can',
put = 'multiple'
}
}
}
If you find an error or have a suggestion, please feel free to help us by creating an issue on the github! Issues