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

> Récupère les données d'un bâtiment côté serveur par son ID.

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

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `buildingId` | integer | L'ID du bâtiment dont récupérer les données |

## Exemple

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