Skip to content
On this page

AthenaClient.menus.npc

Type Aliases

NpcMenuInjection

Ƭ NpcMenuInjection: (scriptID: number, ped: player, options: player[]) => player[]

Type declaration

Usage

AthenaClient.menus.npc.(scriptID, ped, options): player[]

Parameters
NameType
scriptIDnumber
pedplayer
optionsplayer[]
Returns

player[]

Defined in

client/menus/npc.ts:8

Functions

addInjection

Usage

AthenaClient.menus.npc.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.

Static

Parameters

NameType
callbackNpcMenuInjection

Returns

any

Defined in

client/menus/npc.ts:22


disable

Usage

AthenaClient.menus.npc.disable(): void

Disable the NPC Wheel Menu

Export

Returns

void

Defined in

client/menus/npc.ts:93


open

Usage

AthenaClient.menus.npc.open(scriptID): void

Opens the wheel menu against a target npc script id.

Static

Parameters

NameType
scriptIDnumber

Returns

void

Defined in

client/menus/npc.ts:42


override

Usage

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

Parameters

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

Returns

any

Defined in

client/menus/npc.ts:104

Usage

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

Parameters

NameType
functionName"open"
callback(scriptID: number) => void

Returns

any

Defined in

client/menus/npc.ts:105

Created by Stuyk | Est. 2020