Skip to content

yuszafar/altv-npc-conversation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

altv-npc-conversation

Description

Interface for communicating with NPCs

Demo

Install

To install this script, just install it in the resources folder of your server and register it in your config file.

Example

Example 1 - James

James has static answers:

Example1

Live demo

Example 2 - Bill

Bill has dynamic answers. He remembers who he gave cars to:

Example2

Live demo

Conversations configuration

conversation params:

  • text - Text that the NPC says
  • answers - List of answers
  • action- onRpc event name. Use this if you need a dynamic response.

answer params:

  • text - Answer option text
  • goto - conversation id. Use this if you have static conversation logic
  • action - onRpc event name. Use this if you need a dynamic response.

action - action is the onRpc event that you must add on the server

Note

If you use action in conversation/answer then you don't need to use answers/goto

❤️ Sponsor

If you want to support me, just give me a coffee ☕️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published