> For the complete documentation index, see [llms.txt](https://docs.17movement.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.17movement.net/phone/exports/maps/server-exports.md).

# SERVER EXPORTS

### Add Pin (By Source)

Adds a custom pin (marker) to the player's map using their Server ID (Source).

{% code overflow="wrap" lineNumbers="true" %}

```lua
local result = exports["17mov_Phone"]:Maps_AddPinBySrc(src, label, color, position)
```

{% endcode %}

**Returns:**

* `table`: `{ success: boolean, id?: number }`

<table><thead><tr><th width="113" align="center">Argument</th><th width="90" align="center">Type</th><th width="117" align="center">Optional</th><th>Explanation</th></tr></thead><tbody><tr><td align="center">src</td><td align="center"><code>number</code></td><td align="center">❌</td><td>The player's server ID (source).</td></tr><tr><td align="center">label</td><td align="center"><code>string</code></td><td align="center">❌</td><td>The name/label of the pin.</td></tr><tr><td align="center">color</td><td align="center"><code>number</code></td><td align="center">❌</td><td>Index of the pin color (0-4).</td></tr><tr><td align="center">position</td><td align="center"><code>Vector2</code></td><td align="center">❌</td><td>Coordinates for the pin.</td></tr></tbody></table>

### Add Pin (By Number)

Adds a custom pin (marker) to the player's map using their phone number.

{% code overflow="wrap" lineNumbers="true" %}

```lua
local result = exports["17mov_Phone"]:Maps_AddPinByNumber(number, label, color, position)
```

{% endcode %}

**Returns:**

* `table`: `{ success: boolean, id?: number }`

<table><thead><tr><th width="118" align="center">Argument</th><th width="102" align="center" valign="top">Type</th><th width="105" align="center">Optional</th><th>Explanation</th></tr></thead><tbody><tr><td align="center">number</td><td align="center" valign="top"><code>number</code></td><td align="center">❌</td><td>The player's phone number.</td></tr><tr><td align="center">label</td><td align="center" valign="top"><code>string</code></td><td align="center">❌</td><td>The name/label of the pin.</td></tr><tr><td align="center">color</td><td align="center" valign="top"><code>number</code></td><td align="center">❌</td><td>Index of the pin color (0-4).</td></tr><tr><td align="center">position</td><td align="center" valign="top"><code>Vector2</code></td><td align="center">❌</td><td>Coordinates for the pin.</td></tr></tbody></table>
