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

> Obtén los datos de todas las puertas del lado servidor.

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

### Valor de retorno

Una tabla con los datos de todas las puertas.

## Ejemplo

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

    for k, doorData in pairs(doors) do
        if(doorData.allowedJobs and doorData.allowedJobs["police"]) then
            print(doorData.id .. " is a police door")
        end
    end
end)
```


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