Skip to content
On this page

Athena.systems.defaults.vehiclesDespawnOnDestroy

Functions

disable

Usage

Athena.systems.defaults.vehiclesDespawnOnDestroy.disable(): void

Disable vehicles despawning when a player leaves.

Example

ts
Athena.systems.defaults.vehiclesDespawnOnDestroy.disable();

Returns

void

Defined in

server/systems/defaults/vehiclesDespawnOnDestroy.ts:55


setTimeBeforeRemove

Usage

Athena.systems.defaults.vehiclesDespawnOnDestroy.setTimeBeforeRemove(milliseconds): void

Set the time before a vehicle is removed after it is destroyed.

Parameters

NameType
millisecondsnumber

Returns

void

Defined in

server/systems/defaults/vehiclesDespawnOnDestroy.ts:66

Created by Stuyk | Est. 2020