Skip to content
On this page

AthenaClient.menus.vehicle

Type Aliases

VehicleMenuInjection

Ƭ VehicleMenuInjection: (target: alt.Vehicle, options: player[]) => player[]

Type declaration

Usage

AthenaClient.menus.vehicle.(target, options): player[]

Parameters
NameType
targetalt.Vehicle
optionsplayer[]
Returns

player[]

Defined in

client/menus/vehicle.ts:8

Functions

addInjection

Usage

AthenaClient.menus.vehicle.addInjection(callback): any

Create a vehicle wheel menu injection. Meaning, a callback that will modify existing options, or append new options to the menu. Must always return the original wheel menu options + your changes.

Static

Parameters

NameType
callbackVehicleMenuInjection

Returns

any

Defined in

client/menus/vehicle.ts:22


disable

Usage

AthenaClient.menus.vehicle.disable(): void

Disable the Vehicle Wheel Menu

Export

Returns

void

Defined in

client/menus/vehicle.ts:157


open

Usage

AthenaClient.menus.vehicle.open(vehicle): any

Parameters

NameType
vehicleVehicle

Returns

any

Defined in

client/menus/vehicle.ts:87


openInVehicleMenu

Usage

AthenaClient.menus.vehicle.openInVehicleMenu(vehicle): any

Open an in-vehicle menu option and add injections relevant to in-vehicle.

Static

Parameters

NameTypeDescription
vehicleVehicleAn alt:V Vehicle Entity

Returns

any

Defined in

client/menus/vehicle.ts:38


override

Usage

AthenaClient.menus.vehicle.override(functionName, callback): any

Parameters

NameType
functionName"addInjection"
callback(callback: VehicleMenuInjection) => any

Returns

any

Defined in

client/menus/vehicle.ts:169

Usage

AthenaClient.menus.vehicle.override(functionName, callback): any

Parameters

NameType
functionName"open"
callback(vehicle: Vehicle) => any

Returns

any

Defined in

client/menus/vehicle.ts:170

Usage

AthenaClient.menus.vehicle.override(functionName, callback): any

Parameters

NameType
functionName"openInVehicleMenu"
callback(vehicle: Vehicle) => any

Returns

any

Defined in

client/menus/vehicle.ts:171

Created by Stuyk | Est. 2020