# Exports

{% tabs %}
{% tab title="CreateDialog" %}
**To create a dialog with an NPC**

{% code title="For client" fullWidth="true" %}

```lua
exports['gx_dialog']:createDialog({
    id = "jefe_banda_01",
    title = "BOSS",
    npc = "g_m_m_armboss_01",
    coords = vector4(-518.5282, 2002.6160, 205.3863, 182.1195),
    npcText = "What do you want? I don't have time for you.",
    animationProp = {
        animation = { dict = "anim@amb@nightclub@peds@", clip = "rcmme_amanda1_stand_loop_cop" },
    },

    options = {
        {
            meJob = "police",
            text = "Do you know anything about any recent incident?",
            npcText = "I didn't realize you were a cop, sorry.",
            options = {
                {
                    text = "What did you see?",
                    npcText = "I saw a group of suspicious people running.",
                    options = {
                        {
                            text = "Thanks for the information",
                            action = "close",
                            onAction = function()
                                print("u can function custom here!")
                            end,

                        }
                    }
                }
            }
        },
        {
            text = "Just looking around",
            action = "close"
        },
        {
            text = "Do you have anything interesting?",
            npcText = "Yes, I have some illegal stuff.",
            sell = {
                { label = "Illegal Pistol - $15000", item = "weapon_pistol", amount = 1, price = 15000 },
                { label = "Ammunition - $500",       item = "ammo-9",        amount = 50, price = 500 }
            }
        },
        {
            text = "Do you buy anything?",
            npcText = "Depends on what you have... only hot stuff.",
            offer = {
                {
                    label  = "Pistol .50 - $8000 (black money)",
                    item   = "weapon_pistol50",
                    amount = 1,
                    reward = { type = "black_money", amount = 8000 }
                },
                {
                    label  = "Stolen Rolex - $2500 (black money)",
                    item   = "rolex",
                    amount = 1,
                    reward = { type = "black_money", amount = 2500 }
                }
            }
        }
    }
})

```

{% endcode %}

{% endtab %}

{% tab title="RemoveDialog" %}
**To remove the NPC that was previously loaded.**

{% code title="For client" %}

```lua
exports['gx_dialog']:removeDialog('jefe_banda_01')
```

{% endcode %}
{% endtab %}
{% endtabs %}
