> For the complete documentation index, see [llms.txt](https://titans-productions.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://titans-productions.gitbook.io/documentation/redm/scripts/mailbox.md).

# Mailbox

### Doors Registration (Mailman)

The system does not understand and cannot find any doors unless you register them manually. All the MLO developers are and must provide you all the doorhashes to use if the MLO is custom, otherwise the doors already exist in the game and can be found easily.

Once added the provided doorhashes, you have to create and register the doors where `doors` table is, which is located inside on every office as required data.\
\
If the doors are double-doors and not a single door, you have to insert both doors, otherwise only the (1) door will be functional. If a door is a single door and not a double-door, you have to set \[2] to false as it is in the example.<br>

Example:

```lua
Doors = { 

    {
        [1] = { 
            objCoords = vector3(0.0, 0.0, 0.0), -- the door X,Y,Z
            objYaw = 0.0, -- this is the heading of the door.

            textCoords  = vector3(0.0, 0.0, 0.0),
        },

        [2] = false, -- SET TO FALSE IF THERE IS NO SECOND DOOR.
    },

    -- if there are more doors on an office, copy and paste the same table below and insert the doors.

},
```

The doors require a `vector3` which has a x,y,z parameters. You can create yourself a vector3 by getting the doorhash coords directly and inserting them\
\
— Example, the X,Y,Z are always on the `doorhashes.lua` the (3) last parameters `(2633.9196777344,-1219.7867431641,58.596267700195)`

```lua
[3856177940] = {3856177940,-1860805927,"p_doornbfrench1a_x",2633.9196777344,-1219.7867431641,58.596267700195},
```

To create a vector3, you take those 3 last parameters and you add them inside the `vector3` :

```lua
vector3(2633.9196777344,-1219.7867431641,58.596267700195)
```
