Skip to main content

Interaction

How to use Interaction:

-- Returns button id if player presses the button.
exports['wd-uikitv2']: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)