Skip to main content

Interaction

TriggerClientEvent('wd-uikit:showInteraction', source, {
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)