> For the complete documentation index, see [llms.txt](https://devix.gitbook.io/devix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devix.gitbook.io/devix/devix-core/config/providers-config.md).

# Providers Config

**File:** `shared/providers.lua`\
**Resource:** `devix-core`

## What it does

Selects third-party resources for inventory, notify, vehicle keys, fuel, society, target, progress, and text UI (`DevixProviders`).

Used by integrations attached to `DEVIX` (`GiveVehicleKeys`, `SetVehicleFuel`, `Target`, …).

## How to configure

| Field                   | Meaning                                                   |
| ----------------------- | --------------------------------------------------------- |
| `use = "auto"`          | First **started** resource in `detect` (top = preferred). |
| `use = "resource_name"` | Force that provider (skip detect).                        |
| `detect = { ... }`      | Candidate list for auto mode.                             |

To add a new provider:

1. Append the resource name to the matching `detect` list.
2. Add Give/Remove (or SetFuel / Pay) branch in `integrations/<category>/server.lua` and/or `client.lua`.

`Notify`: no detect list — set `use` explicitly (`auto` = framework `DEVIX.Notify`).\
`Society.use = "off"` disables society helpers.\
`DevixProviders.Debug = true` prints resolved providers on boot.

## Categories

| Category      | File(s) to edit for new APIs       | Notes                                                            |
| ------------- | ---------------------------------- | ---------------------------------------------------------------- |
| `Inventory`   | `integrations/inventory/*.lua`     | Prefer `devix-inventory` first in detect.                        |
| `Notify`      | `integrations/notify/*.lua`        | `auto` \| `framework` \| `devix-ui` \| `ox` \| `okokNotify` \| … |
| `VehicleKeys` | `integrations/vehiclekeys/*.lua`   |                                                                  |
| `Fuel`        | `integrations/fuel/*.lua`          | Fallback `native` if none.                                       |
| `Society`     | `integrations/society/server.lua`  | Job/society money.                                               |
| `Target`      | `integrations/target/client.lua`   | Needs `@devix-core/init.lua` in consumer.                        |
| `Progress`    | `integrations/progress/client.lua` | `ox_lib` → internal `"ox"`.                                      |
| `TextUI`      | `integrations/textui/client.lua`   | Else Devix prompt UI.                                            |

## Example

```lua
DevixProviders = {
    Debug = false,
    Inventory = {
        use = "auto",
        detect = { "devix-inventory", "ox_inventory", "qb-inventory" },
    },
    Notify = { use = "auto" }, -- framework DEVIX.Notify
    VehicleKeys = {
        use = "auto",
        detect = { "qbx_vehiclekeys", "qb-vehiclekeys", "wasabi_carlock" },
    },
    Society = { use = "auto", detect = { "qb-banking", "Renewed-Banking" } },
}
```

Force one provider:

```lua
DevixProviders.VehicleKeys.use = "wasabi_carlock"
```

## Consumer scripts

```lua
-- fxmanifest.lua
shared_scripts { '@devix-core/init.lua' }
```

Then use flat API: `DEVIX.AddItem`, `DEVIX.GiveVehicleKeys`, `DEVIX.Target`, …

## See also

* [Main Config](/devix/devix-core/config/main-config.md)
* [Integrations](/devix/devix-core/integrations.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devix.gitbook.io/devix/devix-core/config/providers-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
