Skip to main content

Interaction

-- Returns button id if player presses the button.
exports['wd-uikit']:showInteraction({
duration = 5000,
buttons = {
{
id = 'reject',
button = 'J',
label = 'Reject',
color = 'red',
},
{
id = 'accept',
button = 'K',
label = 'Accept',
color = 'green',
},
},
})

or

TriggerEvent('wd-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)