Dialog with NPC

$23.00

HOW IT WORKS? The script works as follows: first, we create a camera and a dialog with the specified options. If no options are provided, the script will intuitively refer to the configuration file where everything is included. We have ensured plenty of configuration options so that everyone can customize the dialog to their needs.

PLUG & USE The script offers a unique dialogue system with a wide range of configuration options. Before purchasing or installing, make sure to consult the documentation.

$ USD
  • $ USD
  • € EUR
  • £ GBP
Add to Cart
FiveM NPC Dialog Script
Dialog with NPC
$23.00

Lifetime update access. Files FiveMX publishes to this listing remain available to the original eligible purchase without a subscription. Read the exact scope

Config file

cfg = {}

cfg.Dialog = {
    title = {
        text = "Example Title",
        background = {
            primary = "#00243a",
            secondary = "#050f19",
        },
    },
    additional = {
        text = "Example Additional",
        background = {
            primary = "#ff425d",
            secondary = "#b7162b",
        },
    },
    message = {
        text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet enim vitae nibh ultricies, et laoreet libero ultricies. Vestibulum nec nisl sollicitudin, mattis augue eget, mollis sapien. Vivamus sed molestie arcu, at convallis augue.",
        typeEffect = 25,
    },
    audio = {
        path = "audio/example.mp3",
        volume = 50,
    },
    buttons = {
        {
            input = true,
            message = "Provide Your Full Name",
            type = "text",
            onSelect = function(id, input)
                print(id, input)
            end
        },
        {
            input = true,
            message = "Provide Your Age",
            type = "number",
            onSelect = function(id, input)
                print(id, input)
            end
        },
        {
            input = false,
            message = "Test Button 1",
            icon = {
                name = "fa-solid fa-house",
                color = "#ff425d",
            },
            onSelect = function(id)
                print(id)
            end
        },
        {
            input = false,
            message = "Test Button 2",
            icon = {
                name = "fa-solid fa-house",
            },
            onSelect = function(id)
                print(id)
            end
        },
        {
            input = false,
            message = "Test Button 3",
            onSelect = function(id)
                print(id)
            end
        },
    },
}

cfg.Camera = {
    animation = {
        male = {
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_a_male1"},
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_a_male2"},
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_b_male2"},
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_b_male3"},
        },
        female = {
            {dict = "missfbi3_party_b", anim = "talk_inside_loop_female"},
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_b_female"},
            {dict = "missfbi3_party_d", anim = "stand_talk_loop_a_female"},
            {dict = "rcmnigel1cnmt_1c", anim = "price_tag"},
        },
    },
    camera = {
        position = {
            x = 0.0,
            y = 0.8,
            z = 0.7,
        },
        offset = {
            x = 0.0,
            y = 0.0,
            z = 0.5,
        },
        fov = 65.0,
        ease = true,
        easeTime = 1000,
    },
}

 

Additional information

Framework

ESX, QBCore, QBOX, Standalone

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.