Skip to content
On this page

AthenaClient.interface.hotkeys.KeyBindRestrictions ​

client/interface/hotkeys.KeyBindRestrictions

Properties ​

isAiming ​

• Optional isAiming: boolean

Player must be aiming a weapon of some sort to trigger this key bind.

Defined in ​

client/interface/hotkeys.ts:37


isOnFoot ​

• Optional isOnFoot: boolean

Player must be out of a vehicle to use this key bind.

Defined in ​

client/interface/hotkeys.ts:7


isSwimming ​

• Optional isSwimming: boolean

Player must be swimming to be able to trigger this key bind.

Defined in ​

client/interface/hotkeys.ts:45


isVehicle ​

• Optional isVehicle: boolean

Player must be in any vehicle to use this key bind. Accessible by anyone in the vehicle.

Defined in ​

client/interface/hotkeys.ts:15


isVehicleDriver ​

• Optional isVehicleDriver: boolean

Player must be the driver of the vehicle.

Defined in ​

client/interface/hotkeys.ts:29


isVehiclePassenger ​

• Optional isVehiclePassenger: boolean

Player must be in a vehicle as a passenger. Not the driver.

Defined in ​

client/interface/hotkeys.ts:22


vehicleModels ​

• Optional vehicleModels: number[]

Create an array of vehicle model hashes that this key bind only works under. Example: [alt.hash('infernus'), alt.hash('police2')]

Defined in ​

client/interface/hotkeys.ts:53


weaponModels ​

• Optional weaponModels: number[]

Create an array of weapon model hashes that this key bind only works under. Example: [alt.hash('w_ar_advancedrifle')]

Defined in ​

client/interface/hotkeys.ts:62

Created by Stuyk | Est. 2020