Guest User

Staff Menu | Config 1.0

a guest
Feb 24th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.90 KB | Gaming | 0 0
  1. Config = {}
  2.  
  3. --[[
  4. All possible notification systems, choose the one you want:
  5. esx
  6. okokNotify
  7. renzu_notify
  8. mythic_notify
  9. custom -- for your custom notification system put it at rbStaff/shared/notifications.lua
  10. ]]
  11. Config.Notifications = "esx"
  12.  
  13. -- Locales
  14. Config.Locale = "en"
  15.  
  16. -- Built in Command (Admin Duty)
  17. -- You can disable this at Config.BuiltInCommands
  18. Config.Aduty = {
  19. group = "mod",
  20. command = "aduty",
  21. clothes = { -- if remove the table and set to false disables cloth change
  22. male = {
  23. ['tshirt_1'] = 15, ['tshirt_2'] = 0,
  24. ['torso_1'] = 274, ['torso_2'] = 0,
  25. ['arms'] = 9,
  26. ['pants_1'] = 106, ['pants_2'] = 0,
  27. ['shoes_1'] = 2, ['shoes_2'] = 0,
  28. ['armor_1'] = 0,
  29. },
  30. female = {
  31. ['tshirt_1'] = 15, ['tshirt_2'] = 0,
  32. ['torso_1'] = 274, ['torso_2'] = 0,
  33. ['arms'] = 9,
  34. ['pants_1'] = 106, ['pants_2'] = 0,
  35. ['shoes_1'] = 2, ['shoes_2'] = 0,
  36. },
  37. },
  38.  
  39. runSprintMultiplier = 1.49, -- 1.0 or false it doesnt change the player speed
  40. unlimitedStamina = true,
  41. invencible = true,
  42. ids = true,
  43.  
  44. --[[
  45. In admin mode, when you hover over a player or vehicle and press "E," an additional menu opens showing info about that entity.
  46. If you press "E" while pointing at a player and then open the staff menu it will open focused on that player’s profile.
  47. ]]
  48. superpowers = true,
  49. }
  50.  
  51. -- Logs
  52. Config.Logs = {
  53. limit = 500, -- sql limit
  54. }
  55.  
  56. -- Chat
  57. Config.Chat = {
  58. cooldown = 3, -- cooldown to send messages in seconds
  59. maxMessages = 50, -- will only show the last X messages when loading the admin chat after entering the server
  60. }
  61.  
  62. -- Spectate
  63. Config.Spectate = {
  64. enabled = true,
  65. group = "mod", -- minimum group allowed
  66. command = "spectate",
  67. commandStop = "spectateoff",
  68. }
  69.  
  70. -- Reports
  71. Config.Reports = {
  72. enabled = true,
  73. group = "mod",
  74. command = "report", -- /report i need help | to make a report
  75. commandAccept = "raccept", -- /raccept id | to accept the report
  76. commandFinish = "rfinish", -- /rfinish | to finish the report
  77.  
  78. -- Time it takes for the report to expire
  79. timeToExpire = 120,
  80.  
  81. -- How much time the player will need to wait to create another report (WIP)
  82. cooldown = 60,
  83. }
  84.  
  85. -- Player Notes
  86. Config.Notes = {
  87. addNoteGroup = "admin",
  88. removeNoteGroup = "admin",
  89. }
  90.  
  91. -- Resource List
  92. Config.Resources = {
  93. enabled = true,
  94. group = "admin",
  95. }
  96.  
  97. --[[
  98. This is the Built in Commands section!
  99.  
  100. If you want to disable a command you can simply comment it like:
  101. -- aduty = "mod",
  102.  
  103. Command code is at rbStaff/server/commands.lua and rbStaff/client/commands.lua
  104. ]]
  105. Config.LogBuiltInCommands = true
  106. Config.BuiltInCommands = {
  107. aduty = "mod",
  108. nc = "mod", -- noclip
  109. tp = "mod",
  110. tpm = "mod",
  111. setjob = "mod",
  112. setgroup = "mod",
  113. car = "mod",
  114. dv = "mod",
  115. fix = "mod",
  116. giveitem = "mod",
  117. removeitem = "mod",
  118. setaccountmoney = "mod",
  119. giveaccountmoney = "mod",
  120. removeaccountmoney = "mod",
  121. bring = "mod",
  122. slay = "mod",
  123. freeze = "mod",
  124. ["goto"] = "mod", -- goto is a reserved lua word :D
  125. }
  126.  
  127.  
  128. Config.Menu = {}
  129.  
  130. Config.Menu.Settings = {
  131. openMenuCommand = "staffmenu",
  132. closeMenuCommand = "closestaffmenu", -- if it bugs for some reason
  133. openMenuKeybind = "m", -- if false it doesnt create keybing
  134.  
  135. blockedIdentifiers = { "ip", "license2" }, -- identifiers that will not appear on the player information
  136.  
  137. staffHierarchy = {
  138. mod = 1,
  139. admin = 2,
  140. superadmin = 3,
  141. },
  142. }
  143.  
  144. --[[
  145. Player List
  146.  
  147. Choose what information it will be displayed when choosing a player from the player list
  148. ]]
  149. Config.Menu.PlayerList = {
  150. vehicles = true,
  151. houses = true, -- if you use different from allhousing_v1 you need to configure it at rbStaff/server/customize_me.lua
  152. playerIdentifiers = true,
  153. billing = true, -- if you use different from esx_billing you need to configure it at rbStaff/server/customize_me.lua
  154. licenses = true,
  155. notes = true,
  156. }
  157.  
  158. --[[
  159. This quick actions are based on the Config.Menu.AdditionalCommands
  160. ]]
  161. Config.Menu.QuickActions = {
  162. selectedPlayer = { "ban", "kick", "freeze", "setjob", "setgroup", "slay", "revive", "bring", "goto" },
  163.  
  164. spectate = { "ban", "kick", "freeze", "setjob", "setgroup", "slay", "revive"},
  165.  
  166. -- https://boxicons.com/ |
  167. images = {
  168. ["ban"] = 'bx bxs-paper-plane',
  169. ["kick"] = 'bx bxs-hand',
  170. ["freeze"] = 'bx bx-cloud-snow',
  171. ["bring"] = 'bx bxs-down-arrow-alt',
  172. ["goto"] = 'bx bxs-up-arrow-alt',
  173. ["setjob"] = 'bx bxs-hard-hat',
  174. ["setgroup"] = 'bx bxs-group',
  175. ["slay"] = 'bx bxs-skull',
  176. ["revive"] = 'bx bxs-heart',
  177. },
  178. }
  179.  
  180. --[[
  181. Here you will put every command that you want to show on the staff menu!
  182. If you want to use the command with quick actions (spectate and player information), when the argument is an player id, choose name = "player"
  183.  
  184. -- Example 1: Command without any arguments
  185. {
  186. label = "Admin Duty Mode", -- Label for Menu
  187. command = "aduty", -- command
  188. group = nil, -- This command appears to every staff in the menu
  189. },
  190.  
  191. -- Example 2: Command with 1 argument
  192. {
  193. label = "Spectate", -- Label for Menu
  194. command = "spectate", -- command
  195. group = "mod", -- Only people with this group or higher get access to this in the menu
  196. need = { -- list of arguments
  197. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  198. },
  199. },
  200.  
  201. -- Example 3: Command with 3 arguments
  202. {
  203. label = "Set Job",
  204. command = "setjob",
  205. group = "admin", -- Only people with this group or higher get access to this in the menu
  206. need = {
  207. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  208. { name = "job", type = "select", data = "jobs", placeholder = "Job name" },
  209. { name = "grade", type = "number", placeholder = "Grade ID" },
  210. },
  211. },
  212.  
  213. Example Arguments (Lists located at rbStaff/lists.lua)
  214. -- Normal Input
  215. { name = "", placeholder = "", type = "string" },
  216. { name = "", placeholder = "", type = "number" },
  217.  
  218. -- Lists (Lists) rbStaff/lists.lua
  219. { name = "", placeholder = "", type = "select", data = Lists.vehicles },
  220. { name = "", placeholder = "", type = "select", data = Lists.weather },
  221. { name = "", placeholder = "", type = "select", data = Lists.staffHierarchy },
  222.  
  223. -- Server-synced lists
  224. { name = "player", placeholder = "Player ID", type = "select", data = "players" }, -- returns all online players
  225. { name = "player", placeholder = "Player ID", type = "select", data = "openReports" }, -- returns openReports (used for the Accept Report option on menu)
  226. { name = "job", placeholder = "Job Name", type = "select", data = "jobs" }, -- returns all server jobs
  227. { name = "item", placeholder = "Item Name", type = "select", data = "items" }, -- returns all server items
  228. ]]
  229.  
  230. Config.Menu.AdditionalCommands = {
  231. --[[ COMMANDS THAT COME WITH THE SCRIPT FEATURES! ]]
  232. -- Staff
  233. {
  234. label = "Admin Duty Mode",
  235. command = Config.Aduty.command,
  236. },
  237.  
  238. {
  239. label = "Noclip",
  240. command = "nc",
  241. },
  242.  
  243. -- Spectate
  244. {
  245. label = "Spectate",
  246. command = "spectate",
  247. need = {
  248. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  249. },
  250. },
  251.  
  252. {
  253. label = "Spectate Off",
  254. command = "spectateoff",
  255. },
  256.  
  257.  
  258. -- Reports
  259. {
  260. label = "Accept report",
  261. command = "raccept",
  262. need = {
  263. { name = "player", type = "select", data = "openReports", placeholder = "Player ID" },
  264. },
  265. },
  266.  
  267. {
  268. label = "Finish report",
  269. command = "rfinish",
  270. },
  271.  
  272.  
  273. --[[ YOUR SERVER COMMANDS and commands from Config.BuiltInCommands ]]
  274. -- Teleports
  275. {
  276. label = "Teleport",
  277. command = "tp",
  278. need = {
  279. { name = "x", type = "number", placeholder = "X" },
  280. { name = "y", type = "number", placeholder = "Y" },
  281. { name = "z", type = "number", placeholder = "Z" },
  282. },
  283. },
  284.  
  285. {
  286. label = "TPM",
  287. command = "tpm",
  288. },
  289.  
  290.  
  291. -- Player
  292. {
  293. label = "Bring",
  294. command = "bring",
  295. need = {
  296. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  297. },
  298. },
  299.  
  300. {
  301. label = "Go to",
  302. command = "goto",
  303. need = {
  304. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  305. },
  306. },
  307.  
  308. {
  309. label = "Set Job",
  310. command = "setjob",
  311. need = {
  312. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  313. { name = "job", type = "select", data = "jobs", placeholder = "Job name" },
  314. { name = "grade", type = "number", placeholder = "Grade ID" },
  315. },
  316. },
  317.  
  318. {
  319. label = "Set Group",
  320. command = "setgroup",
  321. need = {
  322. { name = "player", placeholder = 'Player ID', type = "select", data = "players" },
  323. { name = "newGroup", placeholder = 'New Group', type = "select", data = Lists.staffHierarchy },
  324. },
  325. },
  326.  
  327. {
  328. label = "Ban",
  329. command = "ban",
  330. need = {
  331. { name = "player", type = "select", data = "players", placeholder = "Player ID / Steam Identifier" },
  332. { name = "days", type = "number", placeholder = "Days" },
  333. { name = "reason", type = "string", placeholder = "Reason" },
  334. },
  335. },
  336.  
  337. {
  338. label = "Unban",
  339. command = "unban",
  340. need = {
  341. { name = "identifier", type = "string", placeholder = "Steam Identifier" },
  342. },
  343. },
  344.  
  345. {
  346. label = "Kick",
  347. command = "kick",
  348. need = {
  349. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  350. { name = "reason", type = "string", placeholder = "Reason" },
  351. },
  352. },
  353.  
  354. {
  355. label = "Freeze",
  356. command = "freeze",
  357. need = {
  358. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  359. },
  360. },
  361.  
  362. {
  363. label = "Give Account Money",
  364. command = "giveaccountmoney",
  365. need = {
  366. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  367. { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
  368. { name = "quantity", type = "number", placeholder = "Amount" },
  369. },
  370. },
  371.  
  372. {
  373. label = "Remove Account Money",
  374. command = "removeaccountmoney",
  375. need = {
  376. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  377. { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
  378. { name = "quantity", type = "number", placeholder = "Amount" },
  379. },
  380. },
  381.  
  382. {
  383. label = "Set Account Money",
  384. command = "setaccountmoney",
  385. need = {
  386. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  387. { name = "account", type = "select", data = Lists.accounts, placeholder = "Account" },
  388. { name = "quantity", type = "number", placeholder = "Amount" },
  389. },
  390. },
  391.  
  392. {
  393. label = "Give Item",
  394. command = "giveitem",
  395. need = {
  396. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  397. { name = "itemName", type = "select", data = "items", placeholder = "Item Name" },
  398. { name = "quantity", type = "number", placeholder = "Amount" },
  399. },
  400. },
  401.  
  402. {
  403. label = "Remove Item",
  404. command = "removeitem",
  405. need = {
  406. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  407. { name = "itemName", type = "select", data = "items", placeholder = "Item Name" },
  408. { name = "quantity", type = "number", placeholder = "Amount" },
  409. },
  410. },
  411.  
  412. {
  413. label = "Revive",
  414. command = "revive",
  415. need = {
  416. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  417. },
  418. },
  419.  
  420. {
  421. label = "Heal",
  422. command = "heal",
  423. need = {
  424. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  425. },
  426. },
  427.  
  428. {
  429. label = "Slay",
  430. command = "slay",
  431. need = {
  432. { name = "player", type = "select", data = "players", placeholder = "Player ID" },
  433. },
  434. },
  435.  
  436.  
  437. -- Vehicle
  438. {
  439. label = "Car",
  440. command = "car",
  441. need = {
  442. { name = "vehicle", type = "select", data = Lists.vehicles, placeholder = "Vehicle Name" },
  443. },
  444. },
  445.  
  446. {
  447. label = "Delete Vehicle",
  448. command = "dv",
  449. },
  450.  
  451. {
  452. label = "Fix vehicle",
  453. command = "fix",
  454. },
  455.  
  456. -- {
  457. -- label = "Refuel vehicle",
  458. -- command = "refuel",
  459. -- },
  460.  
  461. -- Weather
  462. {
  463. label = "Change Weather",
  464. command = "weather",
  465. need = {
  466. { name = "weather", type = "select", data = Lists.weather, placeholder = "Weather Type" },
  467. },
  468. },
  469. }
Advertisement
Add Comment
Please, Sign In to add comment