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

# Get building ID data

> Obtén los datos de un edificio del lado servidor por su ID.

```lua Export theme={null}
exports["doors_creator"]:getBuildingIdData(buildingId)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `buildingId` | integer | El ID del edificio del que obtener los datos |

## Ejemplo

```lua theme={null}
Citizen.CreateThread(function()
    local buildingId = 55
    local buildingData = exports["doors_creator"]:getBuildingIdData(buildingId)

    print("The name of building " .. buildingId .. " is " .. buildingData.label)
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.