VehiclePunishments

API reference for VehiclePunishments in @erlcjs/presets.

Provides punishment actions for banned vehicles. VehiclePunishments

Signature:

declare class VehiclePunishments

#Example

client.on(ERLCEvents.vehicleAdd, banVehicles(
  [Vehicles.BUGATTI_VEYRON],
  VehiclePunishments.warnThenKick(15, true, 'This vehicle is not allowed')
))

#Methods

Method

Modifiers

Description

warnThenKick(delay, warning, message)

static

Warns a player and kicks them if they don't change vehicles within the specified delay.