Request Menu

Examples

exports['jale_interface']:Request(options)

Options

options = {
    title = 'TITLE', -- required option
    text = 'TEXT', -- required option
    keys = {
        accept = 'Y', -- required option, key for accept
        decline = 'N', -- required option, key for decline
    },
    duration = 5000, -- duration of request menu
    onAccept = function () -- function when player accept request
        print('accepted')
    end,
    onDecline = function () -- function when player decline request
        print('declined')
    end
}

Last updated