Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- --[[
- All possible notification systems, choose the one you want:
- esx
- okokNotify
- renzu_notify
- mythic_notify
- custom -- for your custom notification system put it at rbStaff/shared/notifications.lua
- ]]
- Config.Notifications = "esx"
- -- Locales
- Config.Locale = "en"
- -- Built in Command (Admin Duty)
- -- You can disable this at Config.BuiltInCommands
- Config.Aduty = {
- group = "mod",
- command = "aduty",
- clothes = { -- if remove the table and set to false disables cloth change
- male = {
- ['tshirt_1'] = 15, ['tshirt_2'] = 0,
- ['torso_1'] = 274, ['torso_2'] = 0,
- ['arms'] = 9,
- ['pants_1'] = 106, ['pants_2'] = 0,
- ['shoes_1'] = 2, ['shoes_2'] = 0,
- ['armor_1'] = 0,
- },
- female = {
- ['tshirt_1'] = 15, ['tshirt_2'] = 0,
- ['torso_1'] = 274, ['torso_2'] = 0,
- ['arms'] = 9,
- ['pants_1'] = 106, ['pants_2'] = 0,
- ['shoes_1'] = 2, ['shoes_2'] = 0,
- },
- },
- runSprintMultiplier = 1.49, -- 1.0 or false it doesnt change the player speed
- unlimitedStamina = true,
- invencible = true,
- ids = true,
- --[[
- In admin mode, when you hover over a player or vehicle and press "E," an additional menu opens showing info about that entity.
- If you press "E" while pointing at a player and then open the staff menu it will open focused on that player’s profile.
- ]]
- superpowers = true,
- }
- -- Logs
- Config.Logs = {
- limit = 500, -- sql limit
- }
- -- Chat
- Config.Chat = {
- cooldown = 3, -- cooldown to send messages in seconds
- maxMessages = 50, -- will only show the last X messages when loading the admin chat after entering the server
- }
- -- Spectate
- Config.Spectate = {
- enabled = true,
- group = "mod", -- minimum group allowed
- command = "spectate",
- commandStop = "spectateoff",
- }
- -- Reports
- Config.Reports = {
- enabled = true,
- group = "mod",
- command = "report", -- /report i need help | to make a report
- commandAccept = "raccept", -- /raccept id | to accept the report
- commandFinish = "rfinish", -- /rfinish | to finish the report
- -- Time it takes for the report to expire
- timeToExpire = 120,
- -- How much time the player will need to wait to create another report (WIP)
- cooldown = 60,
- }
- -- Player Notes
- Config.Notes = {
- addNoteGroup = "admin",
- removeNoteGroup = "admin",
- }
- -- Resource List
- Config.Resources = {
- enabled = true,
- group = "admin",
- }
- --[[
- This is the Built in Commands section!
- If you want to disable a command you can simply comment it like:
- -- aduty = "mod",
- Command code is at rbStaff/server/commands.lua and rbStaff/client/commands.lua
- ]]
- Config.LogBuiltInCommands = true
- Config.BuiltInCommands = {
- aduty = "mod",
- nc = "mod", -- noclip
- tp = "mod",
- tpm = "mod",
- setjob = "mod",
- setgroup = "mod",
- car = "mod",
- dv = "mod",
- fix = "mod",
- giveitem = "mod",
- removeitem = "mod",
- setaccountmoney = "mod",
- giveaccountmoney = "mod",
- removeaccountmoney = "mod",
- bring = "mod",
- slay = "mod",
- freeze = "mod",
- ["goto"] = "mod", -- goto is a reserved lua word :D
- }
- Config.Menu = {}
- Config.Menu.Settings = {
- openMenuCommand = "staffmenu",
- closeMenuCommand = "closestaffmenu", -- if it bugs for some reason
- openMenuKeybind = "m", -- if false it doesnt create keybing
- blockedIdentifiers = { "ip", "license2" }, -- identifiers that will not appear on the player information
- staffHierarchy = {
- mod = 1,
- admin = 2,
- superadmin = 3,
- },
- }
- --[[
- Player List
- Choose what information it will be displayed when choosing a player from the player list
- ]]
- Config.Menu.PlayerList = {
- vehicles = true,
- houses = true, -- if you use different from allhousing_v1 you need to configure it at rbStaff/server/customize_me.lua
- playerIdentifiers = true,
- billing = true, -- if you use different from esx_billing you need to configure it at rbStaff/server/customize_me.lua
- licenses = true,
- notes = true,
- }
- --[[
- This quick actions are based on the Config.Menu.AdditionalCommands
- ]]
- Config.Menu.QuickActions = {
- selectedPlayer = { "ban", "kick", "freeze", "setjob", "setgroup", "slay", "revive", "bring", "goto" },
- spectate = { "ban", "kick", "freeze", "setjob", "setgroup", "slay", "revive"},
- -- https://boxicons.com/ |
- images = {
- ["ban"] = 'bx bxs-paper-plane',
- ["kick"] = 'bx bxs-hand',
- ["freeze"] = 'bx bx-cloud-snow',
- ["bring"] = 'bx bxs-down-arrow-alt',
- ["goto"] = 'bx bxs-up-arrow-alt',
- ["setjob"] = 'bx bxs-hard-hat',
- ["setgroup"] = 'bx bxs-group',
- ["slay"] = 'bx bxs-skull',
- ["revive"] = 'bx bxs-heart',
- },
- }
- --[[
- Here you will put every command that you want to show on the staff menu!
- If you want to use the command with quick actions (spectate and player information), when the argument is an player id, choose name = "player"
- -- Example 1: Command without any arguments
- {
- label = "Admin Duty Mode", -- Label for Menu
- command = "aduty", -- command
- group = nil, -- This command appears to every staff in the menu
- },
- -- Example 2: Command with 1 argument
- {
- label = "Spectate", -- Label for Menu
- command = "spectate", -- command
- group = "mod", -- Only people with this group or higher get access to this in the menu
- need = { -- list of arguments
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- -- Example 3: Command with 3 arguments
- {
- label = "Set Job",
- command = "setjob",
- group = "admin", -- Only people with this group or higher get access to this in the menu
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "job", type = "select", data = "jobs", placeholder = "Job name" },
- { name = "grade", type = "number", placeholder = "Grade ID" },
- },
- },
- Example Arguments (Lists located at rbStaff/lists.lua)
- -- Normal Input
- { name = "", placeholder = "", type = "string" },
- { name = "", placeholder = "", type = "number" },
- -- Lists (Lists) rbStaff/lists.lua
- { name = "", placeholder = "", type = "select", data = Lists.vehicles },
- { name = "", placeholder = "", type = "select", data = Lists.weather },
- { name = "", placeholder = "", type = "select", data = Lists.staffHierarchy },
- -- Server-synced lists
- { name = "player", placeholder = "Player ID", type = "select", data = "players" }, -- returns all online players
- { name = "player", placeholder = "Player ID", type = "select", data = "openReports" }, -- returns openReports (used for the Accept Report option on menu)
- { name = "job", placeholder = "Job Name", type = "select", data = "jobs" }, -- returns all server jobs
- { name = "item", placeholder = "Item Name", type = "select", data = "items" }, -- returns all server items
- ]]
- Config.Menu.AdditionalCommands = {
- --[[ COMMANDS THAT COME WITH THE SCRIPT FEATURES! ]]
- -- Staff
- {
- label = "Admin Duty Mode",
- command = Config.Aduty.command,
- },
- {
- label = "Noclip",
- command = "nc",
- },
- -- Spectate
- {
- label = "Spectate",
- command = "spectate",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Spectate Off",
- command = "spectateoff",
- },
- -- Reports
- {
- label = "Accept report",
- command = "raccept",
- need = {
- { name = "player", type = "select", data = "openReports", placeholder = "Player ID" },
- },
- },
- {
- label = "Finish report",
- command = "rfinish",
- },
- --[[ YOUR SERVER COMMANDS and commands from Config.BuiltInCommands ]]
- -- Teleports
- {
- label = "Teleport",
- command = "tp",
- need = {
- { name = "x", type = "number", placeholder = "X" },
- { name = "y", type = "number", placeholder = "Y" },
- { name = "z", type = "number", placeholder = "Z" },
- },
- },
- {
- label = "TPM",
- command = "tpm",
- },
- -- Player
- {
- label = "Bring",
- command = "bring",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Go to",
- command = "goto",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Set Job",
- command = "setjob",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "job", type = "select", data = "jobs", placeholder = "Job name" },
- { name = "grade", type = "number", placeholder = "Grade ID" },
- },
- },
- {
- label = "Set Group",
- command = "setgroup",
- need = {
- { name = "player", placeholder = 'Player ID', type = "select", data = "players" },
- { name = "newGroup", placeholder = 'New Group', type = "select", data = Lists.staffHierarchy },
- },
- },
- {
- label = "Ban",
- command = "ban",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID / Steam Identifier" },
- { name = "days", type = "number", placeholder = "Days" },
- { name = "reason", type = "string", placeholder = "Reason" },
- },
- },
- {
- label = "Unban",
- command = "unban",
- need = {
- { name = "identifier", type = "string", placeholder = "Steam Identifier" },
- },
- },
- {
- label = "Kick",
- command = "kick",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "reason", type = "string", placeholder = "Reason" },
- },
- },
- {
- label = "Freeze",
- command = "freeze",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Give Account Money",
- command = "giveaccountmoney",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
- { name = "quantity", type = "number", placeholder = "Amount" },
- },
- },
- {
- label = "Remove Account Money",
- command = "removeaccountmoney",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
- { name = "quantity", type = "number", placeholder = "Amount" },
- },
- },
- {
- label = "Set Account Money",
- command = "setaccountmoney",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
- { name = "quantity", type = "number", placeholder = "Amount" },
- },
- },
- {
- label = "Give Item",
- command = "giveitem",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "itemName", type = "select", data = "items", placeholder = "Item Name" },
- { name = "quantity", type = "number", placeholder = "Amount" },
- },
- },
- {
- label = "Remove Item",
- command = "removeitem",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- { name = "itemName", type = "select", data = "items", placeholder = "Item Name" },
- { name = "quantity", type = "number", placeholder = "Amount" },
- },
- },
- {
- label = "Revive",
- command = "revive",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Heal",
- command = "heal",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- {
- label = "Slay",
- command = "slay",
- need = {
- { name = "player", type = "select", data = "players", placeholder = "Player ID" },
- },
- },
- -- Vehicle
- {
- label = "Car",
- command = "car",
- need = {
- { name = "vehicle", type = "select", data = Lists.vehicles, placeholder = "Vehicle Name" },
- },
- },
- {
- label = "Delete Vehicle",
- command = "dv",
- },
- {
- label = "Fix vehicle",
- command = "fix",
- },
- -- {
- -- label = "Refuel vehicle",
- -- command = "refuel",
- -- },
- -- Weather
- {
- label = "Change Weather",
- command = "weather",
- need = {
- { name = "weather", type = "select", data = Lists.weather, placeholder = "Weather Type" },
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment