# SERVER EXPORTS

<details>

<summary>Return Object Structure</summary>

```
{
  "id": 1,
  "number": 123456789,
  "title": "Suspicious Conversation",
  "url": "[https://example.com/audio.ogg](https://example.com/audio.ogg)",
  "createdAt": 1678900000
}
```

</details>

### Save Voice Message (By Source)

Saves a voice recording (audio file) to the player's voice recorder app using their Server ID (Source).

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

```lua
local result = exports["17mov_Phone"]:Voice_SaveMessageToPlayerBySrc(src, title, url)
```

{% endcode %}

**Returns:**

* `table`: Object containing details of the saved message.

<table><thead><tr><th width="116" align="center">Argument</th><th width="111" align="center">Type</th><th width="106" align="center">Optional</th><th align="center">Explanation</th></tr></thead><tbody><tr><td align="center">src</td><td align="center"><code>number</code></td><td align="center">❌</td><td align="center">The player's server ID (source).</td></tr><tr><td align="center">title</td><td align="center"><code>string</code></td><td align="center">❌</td><td align="center">The title/name of the recording.</td></tr><tr><td align="center">url</td><td align="center"><code>string</code></td><td align="center">❌</td><td align="center">Direct URL to the audio file (e.g., .ogg, .mp3).</td></tr></tbody></table>

### Save Voice Message (By Number)

Saves a voice recording (audio file) to the player's voice recorder app using their phone number.

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

```lua
local result = exports["17mov_Phone"]:Voice_SaveMessageToPlayerByNumber(number, title, url)
```

{% endcode %}

**Returns:**

* `table`: Object containing details of the saved message.

<table><thead><tr><th width="124" align="center">Argument</th><th width="95" align="center">Type</th><th width="130" align="center">Optional</th><th>Explanation</th></tr></thead><tbody><tr><td align="center">number</td><td align="center"><code>number</code></td><td align="center">❌</td><td>The player's phone number.</td></tr><tr><td align="center">title</td><td align="center"><code>string</code></td><td align="center">❌</td><td>The title/name of the recording.</td></tr><tr><td align="center">url</td><td align="center"><code>string</code></td><td align="center">❌</td><td>Direct URL to the audio file (e.g., .ogg, .mp3).</td></tr></tbody></table>
