βοΈExports
Available exports for developers to integrate ZF Dialog with other resources.
Client Exports
Open a dialog
exports['zf-dialog']:openDialog({
name = 'John Doe',
job = 'Mechanic',
messages = {
{
author = 'npc',
content = 'How can I help you?',
}
},
buttons = {
{
label = 'Services',
onSelect = function()
-- Action here
end,
}
},
items = {}, -- Shop items (optional)
paymentMethods = {} -- Payment options (optional)
})Close the dialog
Add a message to the dialog
Update the available buttons in the current dialog
Last updated