2 - Configuration

Config.LicenseKey = 'LICENSE-KEY-HERE'
Config.Commands = {
    callAdmin = 'calladmin', -- The command players will use to create an admin call. Example: /calladmin [reason]
    staffPanel = 'admincalls' -- The command staff will use to access the admin call panel. Example: /admincalls
}
Config.StaffAcePermission = 'simple.staff' -- The ace permission required to access the staff panel and accept calls.
Config.AdminCallAcePermission = 'simple.staff' -- The ace permission required to create an admin call.
Config.AllowEveryoneToCall = true -- If true, anyone can create an admin call. If false, only those with the AdminCallAcePermission can create calls.
Config.CallCooldownSeconds = 60 -- The cooldown time in seconds between admin calls for each player. Set to 0 for no cooldown.
Config.MaxOpenCallsPerPlayer = 1 -- The maximum number of open calls a player can have at once. Set to 0 for unlimited.
Config.MaxReasonLength = 180 -- The maximum number of characters allowed in the reason for the admin call.
Config.CallAutoExpireMinutes = 30 -- The number of minutes after which an open call will automatically expire if not accepted by staff.
Config.TeleportOnAccept = true -- If true, staff will be teleported to the caller's location when accepting a call. Requires the caller to be on foot and not in a vehicle.
Config.NotifyStaffOnNewCall = true -- If true, staff members will receive a notification when a new admin call is created.
Config.NotifyPlayerOnStaffAccept = true -- If true, players will receive a notification when a staff member accepts their admin call.
Config.Database = {
    tableName = 'admin_call_history', -- The name of the database table to store call history.
    closedHistoryLimit = 75 -- The maximum number of closed calls to keep in the database.
}
Config.Panel = {
    idleOpacity = 0.20, -- The opacity of the staff panel when idle (not being interacted with).
    hoverOpacity = 1.5 -- The opacity of the staff panel when being hovered over or interacted with.
}
Config.DefaultMessages = { -- Default messages for various scenarios. You can customize these as needed.
    missingReason = 'Please include a reason for your admin call.',
    cooldown = 'Please wait before sending another admin call.',
    openCallExists = 'You already have an open admin call.',
    noPermission = 'You do not have permission to use this command.',
    callCreated = 'Your admin call has been sent to online staff.',
    callAccepted = 'A staff member accepted your admin call.',
    callClosed = 'Your admin call has been closed.',
    noCalls = 'There are no open admin calls.'
}
Config.VersionChecker = {
    enabled = true, --  Set to true to enable version checking. The script will check for updates and notify you if a new version is available.
    currentVersion = '1.1', -- Do not touch this value or the URL below. The script will automatically update this value when a new version is released.
    versionFileUrl = 'https://raw.githubusercontent.com/Fadinlaws123/ScriptVersionChecker/refs/heads/main/SimpleCallAdminv2.json'
}
Config.DiscordLogs = {
    enabled = true, -- Set to true to enable Discord logging for admin call events. Make sure to configure the webhook URL and other settings below.
    webhook = 'https://discord.com/api/webhooks/1444738932272005141/uwXxc9yNHCGsJJVLWMX4lJbJg-3HY2CDFogJMJGDCtxuehr7WpXEa6wDEtEFipcCwWLn', -- Your Discord webhook URL here
    username = 'SimpleCallAdmin', -- The username that will appear on the Discord messages sent by the webhook.
    avatarUrl = 'https://cdn.discordapp.com/icons/1066225230479101972/a48c427bf8e01972fde2fcf967e886b5.webp?size=1280', -- The avatar URL that will appear on the Discord messages sent by the webhook.
    color = 3447003, -- The color of the embed sidebar in the Discord messages sent by the webhook. This should be a decimal number. You can use a tool like https://www.webpagefx.com/web-design/hex-to-decimal/ to convert hex colors to decimal.
    footerText = 'SimpleDevelopments • SimpleCallAdmin', -- The footer text that will appear on the Discord messages sent by the webhook.
    events = { -- The events that will trigger a Discord log message when they occur. You can enable or disable logging for each event type as needed.
        callCreated = true,
        panelOpened = true,
        panelClosed = true,
        callAccepted = true,
        callClosed = true,
        callExpired = true,
        callDisconnected = true
    }
}