DYNAMIC DEVELOPMENT SCRIPTS
⥠Dynamic Menu â
Dynamic Menu is a fast, lightweight menu system designed for RedM and FiveM. Easily create and customize interactive menus and context menus!
đĻ INSTALLATION GUIDE â
- Download the resource from your Cfx.re Keymaster.
- Unzip and rename the folder to
"dynamic_menu". - Place the folder into your server's
resourcesdirectory. - Add the startup command to your
server.cfgand restart your server:
cfg
ensure dynamic_menuKEYMASTER ASSET ESCROW
Like all licensed resources, this script must be downloaded under the same Cfx.re Keymaster account that owns the server license key.
âī¸ CONFIGURATION â
Edit config.lua to adjust menu position, sound effects, and key bindings:
lua
Config = {}
Config.MenuPosition = 'top-right' -- 'top-right' | 'top-left' | 'center'
Config.EnableSounds = true
Config.DefaultOpenKey = 'F3'
Config.CloseKey = 'BACKSPACE'đģ EXPORTS & API â
Open a Menu â
lua
exports['dynamic_menu']:openMenu({
id = 'gunsmith_menu',
title = 'Armory & Gunsmith',
position = 'top-right',
items = {
{ label = 'Revolver', value = 'weapon_revolver', price = '$15.00' },
{ label = 'Repeater', value = 'weapon_repeater', price = '$45.00' },
{ label = 'Ammo Box', value = 'ammo_box', price = '$5.00' }
}
})Event Callback â
lua
AddEventHandler('dynamic_menu:onSelect', function(menuId, selectedItem)
if menuId == 'gunsmith_menu' then
print('Selected item: ' .. selectedItem.value)
end
end)đ REQUIREMENTS â
- Supported Frameworks:
- TPZ-Core
- VORP Core
- QBCore / RSG Core
- ESX Legacy
- Standalone
- Tebex Store: Buy on Tebex
