Exports
Check the instructions below.
Adding Interaction To Coord
exports["gfx-interact"]:NewInteraction("coords", {vector3(x,y,z)}, {
id = "door-id",
bgColor = "rgb(10, 196, 255)",
options = {
{
text = "Open Door",
key = "E",
event = "door:open_door",
}
}
})
Adding Interaction To Entity
NewInteraction("entity", { entity }, {
id = "ped-1",
title = "Ped",
options = {
{
text = "Talk to Ped",
id = "talk",
event = "event:Name"
},
}
})