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 ​
Name | Type |
---|---|
scriptID | number |
ped | player |
options | player [] |
Returns ​
player
[]
Defined in ​
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 ​
Name | Type |
---|---|
callback | NpcMenuInjection |
Returns ​
any
Defined in ​
disable ​
Usage
AthenaClient.menus.npc.disable(): void
Disable the NPC Wheel Menu
Export
Returns ​
void
Defined in ​
open ​
Usage
AthenaClient.menus.npc.open(scriptID
): void
Opens the wheel menu against a target npc script id.
Static
Parameters ​
Name | Type |
---|---|
scriptID | number |
Returns ​
void
Defined in ​
override ​
Usage
AthenaClient.menus.npc.override(functionName
, callback
): any
Parameters ​
Name | Type |
---|---|
functionName | "addInjection" |
callback | (callback : NpcMenuInjection ) => any |
Returns ​
any
Defined in ​
Usage
AthenaClient.menus.npc.override(functionName
, callback
): any
Parameters ​
Name | Type |
---|---|
functionName | "open" |
callback | (scriptID : number ) => void |
Returns ​
any