📍Dialog System
dialogue = {
name = "Paul", -- big uppercase header
tag = "Lumberjack", -- accent badge under the name
startMsg = "How can I help?",
elements = {
{
label = "Tell me about the job",
-- canInteract is optional — return false to hide the entry
canInteract = function() return ESX.PlayerData.job.name == "unemployed" end,
action = function(changeDialog, close)
changeDialog("Here's what you'll do…", {
{ label = "Sounds good", action = function(_, close) close() end },
})
end,
},
{ label = "Goodbye", action = function(_, close) close() end },
},
}Last updated