> ## 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 all buildings list

> Get the data of all buildings server side.

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

### Return

A table with all buildings' data.

## Example

```lua theme={null}
Citizen.CreateThread(function()
    local buildings = exports["doors_creator"]:getAllBuildings()

    for k, buildingData in pairs(buildings) do
        if(buildingData.allowedJobs and buildingData.allowedJobs["police"]) then
            print(buildingData.label .. " is a police building")
        end
    end
end)
```


## Related topics

- [Server](/doors-creator/server/index.md)
- [Get all doors list](/doors-creator/server/get-all-doors-list.md)
- [Get building ID data](/doors-creator/server/get-building-id-data.md)
- [Get static items list](/jaksam-inventory/functions/shared/get-static-items-list.md)
- [Get all armory weapons](/jobs-creator/server/armory/get-all-armory-weapons.md)
