> For the complete documentation index, see [llms.txt](https://tru-development.gitbook.io/tru-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tru-development.gitbook.io/tru-development-docs/tru-fakeplates/configuration.md). Agents can also search and read this documentation through its [MCP server](https://tru-development.gitbook.io/tru-development-docs/~gitbook/mcp).

# Configuration

Documentation / Tru-Fakeplates

## Configuration

Edit `config.lua`. Qbox example:

```lua
Config.Framework = 'qbx_core'
Config.Inventory = 'ox_inventory'
Config.Interaction.Type = 'auto'
Config.Progress.Type = 'ox_lib'
```

### Persistence <a href="#persistence" id="persistence"></a>

```lua
Config.Persistence.Enabled = true
Config.Database.Resource = 'oxmysql'
```

Persistence is off by default. Review `Config.Access`, `Config.LawEnforcement` and `Config.GarageProtection` for server rules. Vanity is a disabled scaffold, not a finished feature.

### Configuration reference <a href="#configuration-reference" id="configuration-reference"></a>

The following settings are present in the supplied configuration. Edit the existing entries rather than adding duplicate definitions. Table settings contain additional options in the original configuration file.

| Setting                   | Supplied value or type     |
| ------------------------- | -------------------------- |
| `Config.Debug`            | `false`                    |
| `Config.ResourceName`     | `GetCurrentResourceName()` |
| `Config.Framework`        | `'auto'`                   |
| `Config.Inventory`        | `'auto'`                   |
| `Config.Items`            | Configuration table        |
| `Config.Apply`            | Configuration table        |
| `Config.Remove`           | Configuration table        |
| `Config.Session`          | Configuration table        |
| `Config.Vehicle`          | Configuration table        |
| `Config.Plate`            | Configuration table        |
| `Config.Access`           | Configuration table        |
| `Config.Database`         | Configuration table        |
| `Config.Persistence`      | Configuration table        |
| `Config.Logging`          | Configuration table        |
| `Config.Interaction`      | Configuration table        |
| `Config.Progress`         | Configuration table        |
| `Config.Animations`       | Configuration table        |
| `Config.Vanity`           | Configuration table        |
| `Config.Notifications`    | Configuration table        |
| `Config.LawEnforcement`   | Configuration table        |
| `Config.GarageProtection` | Configuration table        |

### Testing changes <a href="#testing-changes" id="testing-changes"></a>

Test with a normal player and an officer. If persistence is enabled, restart and verify the mapping before enabling garage restrictions. Restart the resource after editing configuration and check the console for Lua syntax errors. Keep a copy of your previous working settings.

### Additional configuration reference <a href="#additional-configuration-reference" id="additional-configuration-reference"></a>

The following top-level declarations are taken from the supplied configuration. Table openings indicate a nested configuration block; edit its existing fields in the original file rather than copying an incomplete table. Review inline comments and preserve Lua syntax.

```lua
Config.Debug = false
Config.ResourceName = GetCurrentResourceName()
Config.Framework = 'auto' -- auto, qb-core, qbx_core, es_extended
Config.Inventory = 'auto' -- auto, ox_inventory, qb-inventory, ps-inventory, lj-inventory, qs-inventory, codem-inventory, jaksam_inventory, tgiann-inventory, framework
Config.Items = {
Config.Apply = {
Config.Remove = {
Config.Session = {
Config.Vehicle = {
Config.Plate = {
Config.Access = {
Config.Database = {
Config.Persistence = {
Config.Logging = {
Config.Interaction = {
Config.Progress = {
Config.Animations = {
Config.Vanity = {
Config.Notifications = {
Config.LawEnforcement = {
Config.GarageProtection = {
```

### Safe configuration workflow <a href="#safe-configuration-workflow" id="safe-configuration-workflow"></a>

Change one setting at a time on a staging server. Keep a known-working copy of the configuration, restart the resource after changes and test the affected workflow with a normal player. If a change causes a startup error, restore the previous configuration and inspect the first error in the console.

### Configuring the gameplay rules <a href="#configuring-the-gameplay-rules" id="configuring-the-gameplay-rules"></a>

The supplied application duration is 6500 milliseconds and removal duration is 7000 milliseconds. The screwdriver is required for removal by default and is not consumed. Persistence is disabled by default. Review job restrictions, ownership settings and law-enforcement permissions together; changing one does not automatically configure the others. Keep webhook URLs private and do not publish them in support screenshots.
