Usage

How to use and create NPCs

Creating your first NPC Dialog

  • Go to npc_dialog/config.lua

  • Copy this layout and add inside Config.NPCs

-- base layout
[''] = {
    name = '',
    title = '',
    description = '',
    model = '',
    coords = vector4(0.0, 0.0, 0.0),
    buttons = {
        {
            text = '',
            event = '',
            type = '',
        },
        {
            text = 'Goodbye!',
        }
    }
},
  • Create your NPC according to the example below

This is an example where all possibilities are used, most are not required and it depends on your needs.

Last updated