# Marker Controller

## ServerMarkerController

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

![](https://i.imgur.com/VJhIOBn.png)

Marker List(s):

* [alt:V Marker List](https://wiki.altv.mp/wiki/GTA:Markers)
* [FiveM Marker List](https://docs.fivem.net/docs/game-references/markers/)
* [RageMP Marker List](https://wiki.rage.mp/index.php?title=Markers)

## Example - World

```typescript
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*

```typescript
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);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stuykgaming.gitbook.io/old/controllers/markercontroller.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
