Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---@class BaseMenuItem
- ---@field label string
- ---@field icon string
- ---@field jobs? string[]
- ---@field submenu? nil
- ---@field action? fun(self: BaseMenuItem, sub?: BaseMenuItem)
- ---@class MenuItem:BaseMenuItem
- ---@field submenu? BaseMenuItem[]
- ---@field action fun(self: BaseMenuItem, sub?: BaseMenuItem)
- ---@type MenuItem[]
- Items = {
- {
- label = 'Personal',
- icon = 'fa-solid fa-user',
- submenu = {
- {
- label = 'Show ID',
- icon = 'fa-solid fa-id-card',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Show License',
- icon = 'fa-solid fa-address-card',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Check Wallet',
- icon = 'fa-solid fa-wallet',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Check Health',
- icon = 'fa-solid fa-heart',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Inventory',
- icon = 'fa-solid fa-box-open',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Contacts',
- icon = 'fa-solid fa-address-book',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- }
- },
- {
- label = 'Police',
- icon = 'fa-solid fa-shield-alt',
- jobs = {'police'},
- submenu = {
- {
- label = 'Check ID',
- icon = 'fa-solid fa-id-badge',
- action = function(parent, self)
- print('Police option selected: ' .. self.label)
- end
- },
- {
- label = 'Search Inventory',
- icon = 'fa-solid fa-search',
- action = function(parent, self)
- print('Police option selected: ' .. self.label)
- end
- },
- {
- label = 'Issue Fine',
- icon = 'fa-solid fa-money-bill',
- action = function(parent, self)
- print('Police option selected: ' .. self.label)
- end
- },
- {
- label = 'Arrest',
- icon = 'fa-solid fa-handcuffs',
- action = function(parent, self)
- print('Police option selected: ' .. self.label)
- end
- },
- {
- label = 'Request Backup',
- icon = 'fa-solid fa-phone',
- action = function(parent, self)
- print('Police option selected: ' .. self.label)
- end
- },
- }
- },
- {
- label = 'Emotes',
- icon = 'fa-solid fa-smile',
- submenu = {
- {
- label = 'Wave',
- icon = 'fa-solid fa-hand-wave',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Clap',
- icon = 'fa-solid fa-hands-clapping',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Thumbs Up',
- icon = 'fa-solid fa-thumbs-up',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Point',
- icon = 'fa-solid fa-hand-point-up',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Cheer',
- icon = 'fa-solid fa-flag-checkered',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Sit',
- icon = 'fa-solid fa-chair',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Hands Up',
- icon = 'fa-solid fa-hand-holding',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Lay Down',
- icon = 'fa-solid fa-bed',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Facepalm',
- icon = 'fa-solid fa-head-side-cough',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Shrug',
- icon = 'fa-solid fa-person-shrugging',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Laugh',
- icon = 'fa-solid fa-laugh',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- }
- },
- {
- label = 'Auto',
- icon = 'fa-solid fa-car',
- submenu = {
- {
- label = 'Lock/Unlock',
- icon = 'fa-solid fa-lock',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Engine On/Off',
- icon = 'fa-solid fa-engine',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Open Trunk',
- icon = 'fa-solid fa-car-rear',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Turn On Headlights',
- icon = 'fa-solid fa-lightbulb',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Honk Horn',
- icon = 'fa-solid fa-bullhorn',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- {
- label = 'Check Fuel Level',
- icon = 'fa-solid fa-gas-pump',
- action = function(parent, self)
- print('Option selected: ' .. self.label)
- end
- },
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement