Skip to content

In Game Player Menu

Pheonix KageDesu edited this page Jan 16, 2022 · 4 revisions

⚠️ Information actual for version 0.7 and above
⚠️ Only Alpha NET Z PRO feature

Activate In-Game Player Menu

For activate player menu you should click on another player by right mouse button

For disable menu, set In-Game Player Menu parameter to false

⚠️ If another player starts moving, menu will be closed automatically

⚠️ In-Game Player Menu will be have more options and parameter (visual configuration) with future updates


Editing default commands

Player menu have a group of default commands, you can edit them (change text or hide at all)

You can configurate default command for menu via Plugin Parameters. In-Game Player Menu -> Default Commands


Add custom (user) commands

You can add own commands, see parameter Custom Commands
Custom commands will be after deafult commands in menu
Each command can start specified Common Event

Default and Used command have a set of options, see command parameters


Script calls for default commands

You can call default player menu commands using script call: nAPI.callPlayerMenuAction(ACTION, ACTOR_ID)

Where:

  • ACTION - one of default action (constants)

trade
follow
status

  • ACTOR_ID - another player (to trade with) actor Id

You can get another player Actor ID also by nAPI script calls

Example:

nAPI.callPlayerMenuAction('trade', 1); // Starts trade with player who selected Reid (ID == 1)
nAPI.callPlayerMenuAction('follow', 2); // Starts follow player who selected Priscilla (ID == 2)