AthenaClient.menus.vehicle ​
Type Aliases ​
VehicleMenuInjection ​
Ƭ VehicleMenuInjection: (target: alt.Vehicle, options: player[]) => player[]
Type declaration ​
Usage
AthenaClient.menus.vehicle.(target, options): player[]
Parameters ​
| Name | Type |
|---|---|
target | alt.Vehicle |
options | player[] |
Returns ​
player[]
Defined in ​
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 ​
| Name | Type |
|---|---|
callback | VehicleMenuInjection |
Returns ​
any
Defined in ​
disable ​
Usage
AthenaClient.menus.vehicle.disable(): void
Disable the Vehicle Wheel Menu
Export
Returns ​
void
Defined in ​
open ​
Usage
AthenaClient.menus.vehicle.open(vehicle): any
Parameters ​
| Name | Type |
|---|---|
vehicle | Vehicle |
Returns ​
any
Defined in ​
openInVehicleMenu ​
Usage
AthenaClient.menus.vehicle.openInVehicleMenu(vehicle): any
Open an in-vehicle menu option and add injections relevant to in-vehicle.
Static
Parameters ​
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | An alt:V Vehicle Entity |
Returns ​
any
Defined in ​
override ​
Usage
AthenaClient.menus.vehicle.override(functionName, callback): any
Parameters ​
| Name | Type |
|---|---|
functionName | "addInjection" |
callback | (callback: VehicleMenuInjection) => any |
Returns ​
any
Defined in ​
Usage
AthenaClient.menus.vehicle.override(functionName, callback): any
Parameters ​
| Name | Type |
|---|---|
functionName | "open" |
callback | (vehicle: Vehicle) => any |
Returns ​
any
Defined in ​
Usage
AthenaClient.menus.vehicle.override(functionName, callback): any
Parameters ​
| Name | Type |
|---|---|
functionName | "openInVehicleMenu" |
callback | (vehicle: Vehicle) => any |
Returns ​
any
V5 Docs