Paid Scripts
Here is where you can configure the license key gathered from https://license.simpledevelopments.org/
Config.LicenseKey = 'LICENSE-KEY-HERE'Below is the command system, which lets you configure the commands for running the script.
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
}Below is where you can configure the permissions required not only to use the staff side of the script, but also, if desired, to open a staff call in the first place.
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.
Below is where you can configure the cooldowns, expiration time, and max length/call number for each player.
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.
Below are some misc. settings you can configure, including the option to teleport automatically to users who made a call, notify staff for any call created, and notify players who open a call when staff accepts their call.
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.
Configuration for the database info can be found below, such as the name, and limit to how many calls can be saved within the database. (Default is 75)
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.
}Below is the UI configuration: here you can configure the opacity when you aren't interacting with the UI, and the opacity when you hover your cursor back onto the UI.
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.
}Here is where you can configure the default messages that appear in the notifications while using the script.
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.'
}Here is where you can configure whether the version checker is enabled or disabled. Overall, you won't need to touch much here, aside from enabling or disabling it.
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'
}At the end of the config, you can find settings for configuring the logging function of this script, including what to log, where to log, what the log would look like (i.e., avatar, name, the embed footer, and color)
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
}
}