💻
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • TextLabelController
  • Example - World
  • Example - Single User
Edit on GitHub
  1. Controllers

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);
PreviousPed ControllerNextWorld Notification Controller

Last updated 3 years ago