Skip to content
On this page

Athena.vehicle.asPlayer

Functions

override

Usage

Athena.vehicle.asPlayer.override(functionName, callback): any

Used to override vehicle control as a player functionality

Parameters

NameType
functionName"toggleLock"
callback(player: Player, vehicle: Vehicle) => any

Returns

any

Defined in

server/vehicle/asPlayer.ts:129

Usage

Athena.vehicle.asPlayer.override(functionName, callback): any

Used to override vehicle control as a player functionality

Parameters

NameType
functionName"toggleDoor"
callback(player: Player, vehicle: Vehicle, door: 0 | 3 | 2 | 1 | 4 | 5) => any

Returns

any

Defined in

server/vehicle/asPlayer.ts:130

Usage

Athena.vehicle.asPlayer.override(functionName, callback): any

Used to override vehicle control as a player functionality

Parameters

NameType
functionName"toggleEngine"
callback(player: Player, vehicle: Vehicle) => any

Returns

any

Defined in

server/vehicle/asPlayer.ts:131


toggleDoor

Usage

Athena.vehicle.asPlayer.toggleDoor(player, vehicle, door): any

Toggles a door lock as if a player toggled it.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
vehicleVehicleAn alt:V Vehicle Entity
door0 | 3 | 2 | 1 | 4 | 5

Returns

any

Defined in

server/vehicle/asPlayer.ts:91


toggleEngine

Usage

Athena.vehicle.asPlayer.toggleEngine(player, vehicle): any

Toggles an engine lock as if a player toggled it.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
vehicleVehicleAn alt:V Vehicle Entity

Returns

any

Defined in

server/vehicle/asPlayer.ts:66


toggleLock

Usage

Athena.vehicle.asPlayer.toggleLock(player, vehicle): any

Toggles a vehicle lock as if a player toggled it.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
vehicleVehicleAn alt:V Vehicle Entity

Returns

any

Defined in

server/vehicle/asPlayer.ts:37

Created by Stuyk | Est. 2020