Exports
-- Bans a player from the client side
-- @param reason: string - The reason for the ban
-- @param details: table (Optional) - Additional details about the ban
-- @param duration: number (Optional) - Ban duration in seconds, -1 for permanent ban
-- @return success: boolean - Wether the operation succeeded or not
exports["FCS"]:banPlayer(reason, details, duration)
exports["FCS"]:kickPlayer(reason, details, duration)
-- Ban a player from the server side
-- @param source: number | string - The player's server ID
-- @param reason: string - The reason for the ban
-- @param details?: table (Optional) - Additional details about the ban
-- @param duration?: number (Optional) - Ban duration in seconds, -1 for permanent ban
-- @return success: boolean - Wether the operation succeeded or not
exports["FCS"]:banPlayer(source, reason, details, duration)
exports["FCS"]:kickPlayer(source, reason, details, duration)
-- Unbans a previously banned player
-- @param banId: number | string - The unique ID of the ban to remove
-- @param reason?: string (Optional) - Reason for unbanning the player
-- @param from?: string (Optional) - Name/identifier of the staff member who performed the unban
-- @return success: boolean - Wether the operation succeeded or not
exports["FCS"]:unbanPlayer(banId, reason, from)
-- Unbans all currently banned players
-- @param from: string - Name/identifier of the staff member who performed the mass unban
-- @return success: boolean - Wether the operation succeeded or not
exports["FCS"]:unbanAllPlayers(from)
-- Check if a ban id exists and get its informations
-- @param banId: number | string - The unique ID of the ban to check
-- @return exists: boolean - Wether the ban exists or not
-- @return data?: {
-- playerName: string,
-- playTime: number,
-- lastJoin: Date,
-- firstJoin: Date,
-- banId: number,
-- reason: string,
-- details: table,
-- isPermanent: boolean,
-- evidenceUrl: string,
-- bannedBy: string,
-- bannedAt: Date,
-- expiresAt: Date,
-- identifiers: table
-- }
local exists, data = exports["FCS"]:getBanInfo(banId)-- Server side
local threatScore = exports["FCS"]:getThreatScore(playerId)
local playTime = exports["FCS"]:getPlayTime(playerId) -- in minutes
local hasBypass = exports["FCS"]:hasBypass(playerId)
-- Server side bypass exports
exports["FCS"]:toggleBypass(playerId, toggle) -- toggle is a boolean
exports["FCS"]:tempBypass(playerId, duration) -- duration in seconds-- Client side
local url = exports["FCS"]:screenshot(webhookUrl)
local url = exports["FCS"]:captureLastSeconds(webhookUrl) -- (Video of the last 5 seconds)
-- Server side
local url = exports["FCS"]:screenshot(source, webhookUrl)
local url = exports["FCS"]:captureLastSeconds(source, webhookUrl) -- (Video of the last 5 seconds)local url = exports["FCS"]:getConfig() -- table of the current's FCS ConfigLast updated