Presets

Moderation callbacks for vehicles, commands, and kills.

#Classes

Class

Description

CommandPunishments

Provides punishment actions for banned commands.

LiveryPunishments

Provides punishment actions for banned liveries. LiveryPunishments

VehiclePunishments

Provides punishment actions for banned vehicles. VehiclePunishments

#Functions

Function

Description

autoAnnouncement(server, message, interval)

Sends an announcement in-game every interval,

autoCommand(server, command, interval)

Sends a command in-game every interval,

autoHint(server, message, interval)

Sends a hint in-game every interval,

banCommand(commands, action, startsWith, allowlist)

Ban commands for specific users.

banKickRejoin(timespan)

Bans player that rejoin within a set number of seconds after a kick.

banLiveries(liveries, action, allowlist)

Bans liveries for everyone except specific users.

banVehicles(vehicles, action, allowlist)

Bans vehicles for everyone except specific users.

RDM(action, allowlist, minKills, timespan)

Fires an action if a player reaches a kill threshold in a specific timespan.

welcomePlayer(message)

Welcomes the player on join.

#Interfaces

Interface

Description

Livery

Represents a vehicle livery to ban, optionally scoped to a specific vehicle model.

#Type Aliases

Type Alias

Description

Allowlist

Type which represents allowlists, a set array can be used for a set allowlist or a callback function for a dynamic one.