📃Usage

Here's how to use the export

Export

-- npcName = "string"
-- reputation.show = boolean or nil, reputaion.amount = number
-- question = "string" 
-- options = table
-- id = "string" 
-- label = "string" 
-- closeDialogue = boolean
-- nextDialogue = table

exports["Forosty-Dialogue"]:openDialogue(ped, {
    npcName = npcName,
    reputation = { show = show, amount = amount },
    question = question,
    options = {
        {
            id = id,
            label = label,
            closeDialogue = closeDialogue,
            nextDialogue = {
                question = question,
                options = {
                    { id = id, label = label, closeDialogue = closeDialogue },
                }
            }
        },
        { id = id, label = label, closeDialogue = closeDialogue }
    }
}, function(option)
    if option.id == id then
        print(option.id)
    end
end)

Example usage

Last updated