💻
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
  • ServerMarkerController
  • Example - World
  • Example - Single User
Edit on GitHub
  1. Controllers

Marker Controller

Create in-world markers for a single player or everyone.

PreviousInteraction ControllerNextObject Controller

Last updated 3 years ago

ServerMarkerController

Creates an in-world hologram that can be walked through. See the image below.

Marker List(s):

Example - World

const uid = Athena.controllers.marker.append({
    pos: {x: 0, y: 0, z: 0},
    color: new alt.RGBA(255, 255, 255, 150),
    type: MARKER_TYPE.CYLINDER,
    scale: new alt.Vector3(1, 1, 1),
});

Example - Single User

Keep in mind you should have a player reference to use this

const uid = Athena.controllers.marker.addToPlayer(player, {
    pos: {x: 0, y: 0, z: 0},
    color: new alt.RGBA(255, 255, 255, 150),
    type: MARKER_TYPE.CYLINDER,
    scale: new alt.Vector3(1, 1, 1),
});


alt.setTimeout(() => {
    if (!player || !player.valid) {
        return;
    }

    Athena.controllers.marker.removeFromPlayer(player, uid);
}, 5000);

alt:V Marker List
FiveM Marker List
RageMP Marker List