Permissions Configuration
Understanding the Permissions System
Configuration Example
Config.Permissions = {
["helper"] = {
label = "Helper",
roleColors = {
color = "bg-yellow-500", -- Main color (yellow) for the role
bg = "bg-yellow-50", -- Light yellow background
text = "text-yellow-600", -- Medium yellow text
border = "border-yellow-200" -- Light yellow border
},
permissions = {
"manage_blips", -- added new
"manage_permissions", -- added new
"livemap.action", -- Perform actions on the live map
"view.livemap", -- View the live map
"access_admin_panel", -- Access the admin panel
"show_banned_players", -- View banned players
"ban_history", -- View ban history
"unban_player", -- Unban players
"edit_ban", -- Edit existing bans
"get_player_warnings", -- View player warnings
"close_server_for_players", -- Close server to new players
"ignore_while_kicking_allplayers", -- Exempt from mass kicks
"refresh_resouces", -- Refresh server resources
"schedule_restart", -- Schedule server restarts
"send_announcement", -- Send server-wide announcements
"access_logs", -- View server logs
"players_page", -- Access the players page
"player.revive", -- Revive players
"player.kick", -- Kick players
"player.ban.permanent", -- Issue permanent bans
"player.ban.temporary", -- Issue temporary bans
"player.heal", -- Heal players
"player.respawn", -- Respawn players
"player.kill", -- Kill players
"player.teleport.to_player", -- Teleport to a player
"player.teleport.bring", -- Bring a player to you
"player.freeze", -- Freeze a player
"player.inventory.remove_items", -- Remove items from player inventory
"player.inventory.clear", -- Clear a player’s inventory
"player.warn", -- Warn a player
"player.removewarn", -- Remove a player’s warning
"player.removeweapon", -- Remove a player’s weapon
"player.spectate", -- Spectate a player
"remove.item.from_player", -- Remove specific items from a player
"add.item.to_player", -- Add items to a player
"add.xp", -- Add XP to a player
"remove.xp", -- Remove XP from a player
"set.nickname", -- Set a player’s nickname
"set.chardescription", -- Set a player’s character description
"set.age", -- Set a player’s age
"set.lastname", -- Set a player’s last name
"set.firstname", -- Set a player’s first name
"set.jobgrade", -- Set a player’s job grade
"set.joblabel", -- Set a player’s job label
"set.jobwithgrade", -- Set a player’s job with a specific grade
"currency.addorremove", -- Add or remove currency
"resource.action", -- Perform resource-related actions
"admin.kickall", -- Kick all players
"admin.reports.view", -- View reports
"admin.reports.claim", -- Claim a report
"admin.reports.resolve", -- Resolve a report
"admin.reports.reopen", -- Reopen a report
"admin.reports.message", -- Send messages in reports
"player.teleport.locations", -- Teleport to specific locations
"player.teleport.anywhere", -- Teleport anywhere
"player.teleport.manage", -- Manage teleport locations
"admin.action", -- Perform admin actions
"change.admin.role", -- Change a player’s admin role
"refresh_resources", -- Refresh server resources
"whitelist.add", -- Add players to whitelist
"whitelist.remove", -- Remove players from whitelist
"whitelist.suspend", -- Suspend players from whitelist
"whitelist.edit" -- Edit whitelist entries
},
lvl = 1, -- Lowest rank
},
["moderator"] = {
label = "Moderator",
roleColors = {
color = "bg-green-500", -- Main color (green)
bg = "bg-green-50", -- Light green background
text = "text-green-600", -- Medium green text
border = "border-green-200" -- Light green border
},
permissions = {"*"}, -- Grants all permissions
lvl = 2, -- Higher than Helper
},
["admin"] = {
label = "Admin",
roleColors = {
color = "bg-blue-500", -- Main color (blue)
bg = "bg-blue-50", -- Light blue background
text = "text-blue-600", -- Medium blue text
border = "border-blue-200" -- Light blue border
},
permissions = {"*"}, -- Grants all permissions
lvl = 3, -- Higher than Moderator
},
["headadmin"] = {
label = "Head Admin",
roleColors = {
color = "bg-purple-500", -- Main color (purple)
bg = "bg-purple-50", -- Light purple background
text = "text-purple-600", -- Medium purple text
border = "border-purple-200" -- Light purple border
},
permissions = {"*"}, -- Grants all permissions
lvl = 4, -- Higher than Admin
},
["owner"] = {
label = "Owner",
roleColors = {
color = "bg-red-500", -- Main color (red)
bg = "bg-red-50", -- Light red background
text = "text-red-600", -- Medium red text
border = "border-red-200" -- Light red border
},
permissions = {"*"}, -- Grants all permissions
lvl = 5, -- Highest rank
}
}Explanation of the Configuration
How to Customize Permissions
Assigning Roles
Tips
Last updated