> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_multicharacter/exports.md).

# Exports

You can interact with **ak47\_multicharacter** from your other server-side scripts using the provided exports. This is highly useful for creating custom admin menus, penalty scripts, or sleep/logout systems.

#### `Logout`

Forces a specific player to log out of their current active character, saves their data, and sends them back to the sky-camera character selection screen.

**Export:**

```lua
exports['ak47_multicharacter']:Logout(source)
```

**Parameters:**

* `source` (number) - The server ID of the player you wish to log out.

**Example Usage:**

```lua
-- Example: A custom bed script where sleeping logs the player out
RegisterNetEvent('my_custom_script:GoToSleep', function()
    local src = source
    -- Perform your save logic here...
    
    -- Send player back to character selection
    exports['ak47_multicharacter']:Logout(src)
end)
```
