Client
Last updated
bridge.target.addEntity(entity, {
distance = 2.0,
squareDistance = 5.0,
options = {
{
name = "option1",
label = "Example Option 1",
icon = "fa-solid fa-hotdog",
onSelect = function()
print("Example Function")
end
}
}
})bridge.target.addEntity(entity, {
distance = 2.0,
squareDistance = 5.0,
hideSquare = false,
checkVisibility = false,
showInVehicle = false,
offset = {
text = {x = 0.0, y = 0.0, z = 1.0},
target = {x = 0.0, y = 0.0, z = 0.0},
},
options = {
{
name = "option1",
label = "Example Option 1",
icon = "fa-solid fa-hotdog",
onSelect = function()
print("Example Function")
end
},
{
name = "option2",
label = "Example Option 2",
icon = "fa-solid fa-hotdog",
onSelect = function()
print("Example Function")
end
}
}
})bridge.target.removeEntity(entity, option, invoker)bridge.target.removeEntity(entity)bridge.target.removeEntity(entity, "option1")