> For the complete documentation index, see [llms.txt](https://poseidon-2.gitbook.io/poseidon-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://poseidon-2.gitbook.io/poseidon-docs/customer-scripts/pos-itemstacks/config-examples/config.lua.md).

# config.lua

```lua
Config = {}


Config.Items = {
    ['sticla_apa'] = { -- Item name
        removeItems = {
            { item = 'sticla_apa', count = 1, chance = 100 }, -- Chance is the percentage chance of removing the item, 100 means it will always be removed
        },
        addItems = {
            { item = 'sfoara', count = 1, chance = 100 }, -- Chance is the percentage chance of adding the item, 100 means it will always be added, you can add weapons too as WEAPON_PISTOL_MAUSER
            { item = 'WEAPON_PISTOL_MAUSER', count = 1, chance = 50 }, -- This will add a Mauser pistol with a 50% chance
        },
        cash = {1, 5}, -- Cash is the range of cash that can be given, it will randomly choose a number between 1 and 5
    }
}


Config.Lang = 'EN' -- YOU NEED TO MODIFY IT TOO IN THE FILE CONFIG.JS FOR THE MENU TRANSLATION, THE FOLLOWING MESSAGES ARE JUST FOR NOTIFICATIONS



Config.Text = {
    EN = {
        ['not_allowed'] = 'You are not allowed to do that!',
        ['not_enough_space'] = 'You do not have enough space in the inventory to carry the items!',
        ['not_enough_items'] = 'You are missing %s x %s to be able to do this!',
        ['success'] = 'You have successfully made the item!',

    }

}

local isServer = IsDuplicityVersion()
function Notify(source, text, type) --You can replace with your own notification system. Type can be fail, success, info.
    if isServer then
        TriggerClientEvent("POS-Core:notify", source, 'USI', text, type, 5000) 
    else 
        TriggerEvent("POS-Core:notify", 'USI', text, type, 5000)
    end
end


```


---

# 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://poseidon-2.gitbook.io/poseidon-docs/customer-scripts/pos-itemstacks/config-examples/config.lua.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.
