Text Label Controller
Create in-world text that is displayed at a 3D location.
TextLabelController
Creates in-world text that is displayed in-game at a 3D location.
Example - World
const uid = Athena.controllers.text.append({
data: 'Hello from In-World!',
pos: { x: 1245.790771484375, y: -3165.754150390625, z: 5.60198450088501 },
});
Example - Single User
Keep in mind you should have a player reference to use this
const uid = Athena.controllers.text.addToPlayer({
data: 'Simple Delivery',
pos: { x: 1245.790771484375, y: -3165.754150390625, z: 5.60198450088501 },
});
alt.setTimeout(() => {
if (!player || !player.valid) {
return;
}
Athena.controllers.text.removeFromPlayer(player, uid);
}, 5000);
Last updated