JosephCZ
Member
- Joined
- Aug 18, 2021
- Messages
- 3
- Reaction score
- 3
- Points
- 156
Job Planet Menu
- Here's my very useful and editable (from config.lua) menu
- I regularly add new features and options
- The information can be read in full at the link
- I apologize for never giving you a chance to look at the source code
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Config = {}
-- Key to open menu
-- Set the key you want to use to open the menu.
-- Config for Key binding for open menu
Config.KeyBinds = true
Config.InteractionKeyCode = 182 -- Keybind for open menu
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Config for Command for open menu
Config.Command = true
Config.MenuCommand = 'planetmenu' -- Command for open menu
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Config.allowedAdminGroups = {
['superadmin'] = true,
['admin'] = true
-- Here you can add more groups which will be allowed to you /setjob2-6 command
}
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Settings for individual jobs
-- Set which additional jobs are allowed.
-- true means enabled, false means disabled.
Config.job2 = true
Config.job3 = true
Config.job4 = false
Config.job5 = false
Config.job6 = false
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- ESXMenu
-- Settings for the confirmation menu
-- Set the title and location of the confirmation menu for the job change.
Config.jobSwitchTitle = 'Potvrzení změny zaměstnání'
Config.jobSwitchAlign = 'top-left' -- Options: 'top-left', 'top-right', 'bottom-left', 'bottom-right'
Config.jobSwitchElements = {
{label = '', value = 'yes'},
{label = '', value = 'no'}
}
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- ESXMenu
-- Settings for the main menu
-- Set the title and location of the main menu.
Config.menuTitle = 'Job Planet Menu'
Config.menuAlign = 'top-left' -- Options: 'top-left', 'top-right', 'bottom-left', 'bottom-right'
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Notification system settings
-- Select which notification system you want to use.
-- Options: 'okok', 'esx', 'mythic'
-- Set which notification system to use
Config.NotificationSystem = 'okok' -- Options: 'okok', 'esx', 'mythic'
Config.ui = 'OXlib' -- Options: 'ESXMenu' or 'OXlib' for (OXlib you must have resource "ox_lib")
-- You can find here:
--Hidden link for visitors, to see Log in or register now.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Configuring notifications for different notification systems
-- Set up headlines, messages, durations and types for different notification systems.
-- You can customize messages and subtitles to suit your needs.
Config.Notifications = {
-- Notification when a player has to wait for a job change
JobChangeWait = {
okok = { -- For okok notification system
title = 'Změna Zaměstnání', -- Notification title
message = 'Musíte počkat, než znovu změníte zaměstnání.', -- Report content
duration = 5000, -- Notification display time in ms
type = 'error' -- Notification type (e.g. error)
},
esx = { -- For ESX notification system
message = 'Musíte počkat, než znovu změníte zaměstnání.'
},
mythic = { -- For Mythic notification system
type = 'error',
message = 'Musíte počkat, než znovu změníte zaměstnání.',
duration = 5000
}
},
-- Notifications for a successful job change
JobChangeSuccess = {
okok = {
title = 'Změna Zaměstnání',
message = 'Vaše zaměstnání bylo úspěšně změněno.',
duration = 5000,
type = 'success'
},
esx = {
message = 'Vaše zaměstnání bylo úspěšně změněno.'
},
mythic = {
type = 'success',
message = 'Vaše zaměstnání bylo úspěšně změněno.',
duration = 5000
}
},
-- Notification for failed job change
JobChangeFailure = {
okok = {
title = 'Změna Zaměstnání',
message = 'Nelze změnit zaměstnání. Zkuste to prosím znovu.',
duration = 5000,
type = 'error'
},
esx = {
message = 'Nelze změnit zaměstnání. Zkuste to prosím znovu.'
},
mythic = {
type = 'error',
message = 'Nelze změnit zaměstnání. Zkuste to prosím znovu.',
duration = 5000
}
},
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- For command setjob2-6 only
-- Notifications for successful new job setup
SetJobSuccess = {
okok = {
title = 'Nastavení Zaměstnání',
message = 'Zaměstnání {jobNumber} bylo úspěšně nastaveno pro hráče s ID: {playerId}.',
duration = 5000,
type = 'success'
},
esx = {
message = 'Zaměstnání {jobNumber} bylo úspěšně nastaveno pro hráče s ID: {playerId}.'
},
mythic = {
type = 'success',
message = 'Zaměstnání {jobNumber} bylo úspěšně nastaveno pro hráče s ID: {playerId}.',
duration = 5000
}
},
-- Notification for failed new job setup
SetJobFailure = {
okok = {
title = 'Nastavení Zaměstnání',
message = 'Nastavení zaměstnání {jobNumber} se nezdařilo.',
duration = 5000,
type = 'error'
},
esx = {
message = 'Nastavení zaměstnání {jobNumber} se nezdařilo.'
},
mythic = {
type = 'error',
message = 'Nastavení zaměstnání {jobNumber} se nezdařilo.',
duration = 5000
}
},
-- Notification when a player is not found
PlayerNotFound = {
okok = {
title = 'Nastavení Zaměstnání',
message = 'Hráč s ID: {playerId} nebyl nalezen.',
duration = 5000,
type = 'error'
},
esx = {
message = 'Hráč s ID: {playerId} nebyl nalezen.'
},
mythic = {
type = 'error',
message = 'Hráč s ID: {playerId} nebyl nalezen.',
duration = 5000
}
},
-- Instructions for using the job setup command
SetJobUsage = {
okok = {
title = 'Nastavení Zaměstnání',
message = 'Použití: /setjob{jobNumber} [playerId] [job] [grade]',
duration = 5000,
type = 'error'
},
esx = {
message = 'Použití: /setjob{jobNumber} [playerId] [job] [grade]'
},
mythic = {
type = 'error',
message = 'Použití: /setjob{jobNumber} [playerId] [job] [grade]',
duration = 5000
}
}
}
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- OXlib Settings:
Config.notifyTitle = 'Oznámení'
Config.textInput = 'Text oznámení'
Config.colorInput = 'Barva oznámení'
Config.inputTitle = 'Pracovní oznámení'
Config.changeTitle = 'Změnit práci'
Config.salaryTitle = 'Plat'
Config.confirmation = 'Opravdu chcete změnit práci na'
Config.CustomNotifyTemplate = {
position = 'top',
style = {
color = '#ffffff'
},
icon = 'bullhorn',
type = 'inform',
iconColor = '#FFFFFF',
duration = 5000
}