> ## 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

> Get a building's data server side by its ID.

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

### Parameters

| Name         | Data Type | Description                         |
| ------------ | --------- | ----------------------------------- |
| `buildingId` | integer   | The building ID to get the data for |

## Example

```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)
```


## Related topics

- [Server](/doors-creator/server/index.md)
- [Get door ID data](/doors-creator/server/get-door-id-data.md)
- [Get all buildings list](/doors-creator/server/get-all-buildings-list.md)
- [Create building](/doors-creator/server/create-building.md)
- [Get inventory](/jaksam-inventory/functions/server/get-inventory.md)
