> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nonefivem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding IPL Building

## Types

***

### Door

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>coords</td><td>vector3</td><td>coords</td><td>true</td></tr><tr><td>h</td><td>number</td><td>heading</td><td>true</td></tr></tbody></table>

### Ipl Building

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>coords</td><td>vector3</td><td>Ipl coords</td><td>true</td></tr><tr><td>doors</td><td><a href="#door">door</a>\[]</td><td>Inside door coords</td><td>true</td></tr><tr><td>realestate</td><td><a href="../../real-estate#realestate">Real Estate Data</a></td><td>The data required to be listed in the real estate menu</td><td>false</td></tr><tr><td>interactions</td><td>function\[]</td><td><a href="adding-building-interaction">Building interactions</a></td><td>false</td></tr><tr><td>radius</td><td>number</td><td>Furniture Editor radius based on coords (default 20)</td><td>false</td></tr><tr><td>onEnter</td><td>function</td><td>Function to be executed after the player enters the building</td><td>false</td></tr><tr><td>onExit</td><td>function</td><td>Function to be executed after the player exits the building</td><td>false</td></tr></tbody></table>

## Examples

***

> Create `building_name.lua` inside `no-housing/config/shared/buildings/ipl`

```lua theme={null}
Config.Buildings.Ipl.building_name = {
    coords = vector3(1093.6, -3196.6, -38.99) -- building coords,
    doors = { -- building doors
        {coords = vector3(1088.674, -3187.672, -38.99), h = 176.64},
        {coords = vector3(1103.377, -3195.934, -38.99), h = 91.46}
    },
    realestate = {
        label = "Building Label",
        price = 13000
    },
    onEnter = function(ctx)

    end,
    onExit = function()

    end
}
```
