Vivum Target
Star
Learn about the star of Vivum Target
Overview
All targets render a star at the center of the target. Most target types, such as targets with a static position, will have the star and the menu rendered in 3D space. Other target types, such as entities or global targets, will render it in 2D space if there is no offset or bone configured.
Action
The star can be configured to be interactable, even without any items.
action.lua
exports["vivum-target"]:AddTarget({ name = "action", target = { position = vector3(0, 0, 0), }, action = function () print("Star clicked!") end })
Tint Color
The star can be configured to have a tint color:
tint.lua
exports["vivum-target"]:AddTarget({ name = "tint", target = { position = vector3(0, 0, 0), }, starTint = { 255, 0, 0 } -- red (RGB) })
Icons
Icons can be configured to replace the inner circle in the star.
Vivum Target Icons
Learn how to add icons to your targets
Statefulness
The star can be configured to be stateful, meaning that it will render an empty or filled star depending on the stateful property of the target. This is useful for things like doors or other open/closed states.
Vivum Target Stateful
Learn how to configure statefulness for your target