Interaction
- Show Interaction
- Hide Interaction
-- Returns button id if player presses the button.
exports['wd-hud']:showInteraction({
title = 'Wendigo Interact',
description = 'Wendigo Interact Description',
duration = 5000,
buttons = {
{
id = 'reject',
button = 'J',
label = 'Reject',
color = 'red',
round = 'left',
},
{
id = 'accept',
button = 'K',
label = 'Accept',
color = 'green',
round = 'right',
},
},
})
or
TriggerEvent('wd-hud:showInteraction', {
title = 'Wendigo Interact',
description = 'Wendigo Interact Description',
duration = 5000,
buttons = {
{
id = 'reject',
button = 'J',
label = 'Reject',
color = 'red',
round = 'left',
},
{
id = 'accept',
button = 'K',
label = 'Accept',
color = 'green',
round = 'right',
},
},
}, function(id) -- Returns button id if player presses the button.
-- do some stuff
end)
Button Styles
You can change the button styles by changing round variable.
Variables;
left
right
full