openInteractMenu
The openInteractMenu
export allows you to create an interaction menu for NPCs programmatically. This is useful for adding roleplay elements, custom dialogues, and other gameplay interactions with NPCs.
How to Use
To open an interaction menu for an NPC, use the following code:
Example:
This export takes the following parameters:
coords: The
vec4
position where the interaction will take place.title: The title displayed on the interaction menu.
name: The name of the NPC.
options: A table of interaction choices available to the player.
This function allows seamless NPC interactions, enhancing gameplay customization and immersion.
Last updated