Skip to content
On this page

AthenaClient.menus.player

Type Aliases

PlayerMenuInjection

Ƭ PlayerMenuInjection: (target: alt.Player, options: player[]) => player[]

Type declaration

Usage

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

Parameters
NameType
targetalt.Player
optionsplayer[]
Returns

player[]

Defined in

client/menus/player.ts:5

Functions

addInjection

Usage

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

Allows the current Menu Options to be modified. 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.

Parameters

NameType
callbackPlayerMenuInjection

Returns

any

Defined in

client/menus/player.ts:18


disable

Usage

AthenaClient.menus.player.disable(): void

Disable the Player Wheel Menu

Export

Returns

void

Defined in

client/menus/player.ts:84


open

Usage

AthenaClient.menus.player.open(target): any

Opens the wheel menu against a target player.

Parameters

NameType
targetPlayer

Returns

any

Defined in

client/menus/player.ts:37


override

Usage

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

Parameters

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

Returns

any

Defined in

client/menus/player.ts:95

Usage

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

Parameters

NameType
functionName"open"
callback(target: Player) => any

Returns

any

Defined in

client/menus/player.ts:96

Created by Stuyk | Est. 2020