Skip to content

Instantly share code, notes, and snippets.

@KageDesu
Created October 30, 2025 14:01
Show Gist options
  • Select an option

  • Save KageDesu/d741e0fc452c7af2da88fe00e4923fdb to your computer and use it in GitHub Desktop.

Select an option

Save KageDesu/d741e0fc452c7af2da88fe00e4923fdb to your computer and use it in GitHub Desktop.
Interaction Menu (ANETZ Extension)

Interaction Menu (ANETZ Extension)

This extension plugin requires Alpha NET Z to work.

⚠️ Information valid for version 0.9 and above

Overview

This extension adds an in-game interaction menu to interact with other players.

Using the In-Game Player Menu

Activating the Player Menu

To activate the player menu, right-click on another player.

NETZ_openPlayerMenu

⚠️ Note: If the other player starts moving, the menu will close automatically.

NETZ_closePlayerMenuInMoving

⚠️ The In-Game Player Menu will have more options and parameters (visual configuration) in future updates.

Configuring Menu Commands

Editing Default Commands

The player menu includes a set of default commands that you can customize (change text or hide completely).

You can configure default commands via Plugin Parameters: Default Commands

Adding Custom Commands

You can add your own commands using the Custom Commands parameter.
Custom commands will appear after default commands in the menu.
Each command can trigger a specified Common Event.

Both default and custom commands have a set of configurable options. See the command parameters for details.

NETZ_customCommandPP2

Script Calls

Calling Default Commands via Script

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

Parameters:

  • ACTION - One of the default actions (constants):

    • trade - Initiates trading with another player
    • follow - Starts following another player
    • status - Views another player's status
  • ACTOR_ID - The actor ID of the other player to interact with

You can also get another player's Actor ID using nAPI script calls.

Examples:

nAPI.callPlayerMenuAction('trade', 1); // Starts trade with the player who selected Reid (ID == 1)
nAPI.callPlayerMenuAction('follow', 2); // Starts following the player who selected Priscilla (ID == 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment