> For the complete documentation index, see [llms.txt](https://project-07.gitbook.io/project_07-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://project-07.gitbook.io/project_07-docs/scripts/p07-lootpropv1/configuration.md).

# Configuration

Config File

{% code title="config.lua" overflow="wrap" lineNumbers="true" %}

```lua
--[[

██████╗ ██████╗  ██████╗      ██╗███████╗ ██████╗████████╗      ██████╗ ███████╗
██╔══██╗██╔══██╗██╔═══██╗     ██║██╔════╝██╔════╝╚══██╔══╝     ██╔═████╗╚════██║
██████╔╝██████╔╝██║   ██║     ██║█████╗  ██║        ██║        ██║██╔██║    ██╔╝
██╔═══╝ ██╔══██╗██║   ██║██   ██║██╔══╝  ██║        ██║        ████╔╝██║   ██╔╝ 
██║     ██║  ██║╚██████╔╝╚█████╔╝███████╗╚██████╗   ██║███████╗╚██████╔╝   ██║  
╚═╝     ╚═╝  ╚═╝ ╚═════╝  ╚════╝ ╚══════╝ ╚═════╝   ╚═╝╚══════╝ ╚═════╝    ╚═╝  
                                                                                                                                                                                                                                                                    
]]

project07 = {}

project07.Debug = false

project07.CooldownTime = 1200

project07.MaxLootAttempts = 1

project07.BulkLoot = true

project07.IndividualLoot = true

project07.ProgressTime = 5000

project07.TargetDistance = 2.5

project07.Props = {

    ['carwreck'] = {
        model = 'prop_pile_dirt_03',
        lootCategories = {
            {
                category = 'weapons',
                items = {
                    { name = 'weapon_pistol', chance = 15, min = 1, max = 1 },
                    { name = 'ammo-9',        chance = 35, min = 5, max = 20 },
                }
            },
            {
                category = 'medical',
                items = {
                    { name = 'bandage',  chance = 40, min = 1, max = 3 },
                    { name = 'firstaid', chance = 20, min = 1, max = 1 },
                }
            },
            {
                category = 'junk',
                items = {
                    { name = 'metalscrap', chance = 50, min = 2, max = 5 },
                    { name = 'plastic',    chance = 60, min = 3, max = 8 },
                }
            }
        }
    },

    ['foodprop'] = {
        model = 'prop_food_tray_01',
        lootCategories = {
            {
                category = 'food',
                items = {
                    { name = 'bread',    chance = 50, min = 1, max = 2 },
                    { name = 'water',    chance = 70, min = 1, max = 2 },
                    { name = 'sandwich', chance = 30, min = 1, max = 1 },
                }
            },
            {
                category = 'drinks',
                items = {
                    { name = 'coffee', chance = 40, min = 1, max = 1 },
                    { name = 'beer',   chance = 25, min = 1, max = 2 },
                }
            }
        }
    },

    ['dumpster'] = {
        model = 'prop_dumpster_01a',
        lootCategories = {
            {
                category = 'junk',
                items = {
                    { name = 'metalscrap', chance = 60, min = 1, max = 4 },
                    { name = 'plastic',    chance = 70, min = 2, max = 6 },
                    { name = 'rubber',     chance = 50, min = 1, max = 3 },
                }
            },
            {
                category = 'rare',
                items = {
                    { name = 'phone',    chance = 10, min = 1, max = 1 },
                    { name = 'lockpick', chance = 15, min = 1, max = 2 },
                }
            }
        }
    },

    -- To add a new prop, copy the block below and fill in the values:
    -- ['myprop'] = {
    --     model = 'prop_model_name',
    --     lootCategories = {
    --         {
    --             category = 'example',
    --             items = {
    --                 { name = 'itemname', chance = 50, min = 1, max = 3 },
    --             }
    --         }
    --     }
    -- },
}

project07.Notifications = {
    noLoot           = 'Nothing useful found here.',
    onCooldown       = 'This has been thoroughly searched. Come back later.',
    recentlySearched = 'This has been recently searched. Wait a bit.',
    looted           = 'You found %s item(s).',
    bulkLooted       = 'You collected everything (%s items).',
    searching        = 'Searching...',
    cancelled        = 'Cancelled search.',
    inventoryFull    = 'Your inventory is full!',
}
```

{% endcode %}
