Interaction

exports['izzy-uikit']:showInteraction({
    duration = 5000,
    buttons = {
        {
            id = 'reject',
            button = 'J',
            label = 'Reject',
            color = 'red',
        },
        {
            id = 'accept',
            button = 'K',
            label = 'Accept',
            color = 'green',
        },
    },
})

TriggerEvent('izzy-uikit:showInteraction', {
    duration = 5000,
    buttons = {
        {
            id = 'reject',
            button = 'J',
            label = 'Reject',
            color = 'red'
        },
        {
            id = 'accept',
            button = 'K',
            label = 'Accept',
            color = 'green'
        },
    },
}, function(id) -- Returns button id if player presses the button.
    -- do some stuff
end)

Last updated