Exports

Here you can find FiveSecure exports for developer usage

Overview

The ban export allows you to trigger a FiveSecure ban from any other resource on your server. It distinguishes between manual administrator bans and automated system detections.

Usage

To call this export in your code, use the following syntax:

-- [ Server side ]

--- @param playerId integer | The server ID of the player to ban
--- @param reason string | Public ban reason shown to the player
--- @param privateReason string | Internal reason visible only to admins/logs
--- @param note string | Extra context
exports["FiveSecure"]:ban(playerId, reason, privateReason, note)

Parameters

Parameter

Type

Description

playerId

integer

The server ID of the player to be banned.

reason

string

The public reason shown to the player (e.g., "0x11").

privateReason

string

Internal details seen only by admins in the logs.

note

string

Additional context.

Last updated

Was this helpful?