> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_casino/features/drinking-bar/bartender-item-list.md).

# Bartender Item List

Every item the casino bar can sell, and the fields behind them.

`BartenderItemList` in `configs/peds/bartender.lua` is the single list of everything a bartender can sell. By default it has 17 items. The editor reads it to fill a bartender's item picker, and the bar menu reads it to price and serve what a player orders.

Add a new drink here first. It cannot be picked in the editor until it is in this list. Which bartender sells what is then chosen per bartender on the [Bartenders editor page](https://documentation.rcore.cz/paid-resources/rcore_casino/features/editor/bartenders.md).

## The default items

<table data-full-width="false"><thead><tr><th width="127">Item icon</th><th>Item name</th><th>Price</th><th>Gives item</th><th>Inventory item name</th></tr></thead><tbody><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-1e2930860b6ef644414dcde806051fa83a4356a2%2Fcasino_beer.png?alt=media" alt=""></td><td>Beer</td><td>40</td><td>Yes</td><td><code>casino_beer</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-03f0921e8863a22f5aeb87ac3902d0d694e98df4%2Fcasino_burger.png?alt=media" alt=""></td><td>Burger</td><td>50</td><td>Yes</td><td><code>casino_burger</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-553148ff5d6f09a05aef8cce8f2c5558b3089976%2Fcasino_coffee.png?alt=media" alt=""></td><td>Coffee</td><td>30</td><td>Yes</td><td><code>casino_coffee</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-9e53acc99dff1f31bcf34ec212313e53fb7d2f3e%2Fcasino_coke.png?alt=media" alt=""></td><td>Coke</td><td>30</td><td>Yes</td><td><code>casino_coke</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-1b745a70901004e42dbf0f1df6a3543d7afe8137%2Fcasino_donut.png?alt=media" alt=""></td><td>Donut</td><td>30</td><td>Yes</td><td><code>casino_donut</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-1266f3855c7ca0ee456564a7dca02c2936c1f718%2Fcasino_ego_chaser.png?alt=media" alt=""></td><td>Ego Chaser</td><td>40</td><td>Yes</td><td><code>casino_ego_chaser</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-04172a3ec84770c76a5803968288ebf129382273%2Fcasino_luckypotion.png?alt=media" alt=""></td><td>Lucky Potion</td><td>60</td><td>Yes</td><td><code>casino_luckypotion</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-caaae441cb06a4599424dc5673f1c8267ca578af%2Fcasino_psqs.png?alt=media" alt=""></td><td>PsQs</td><td>40</td><td>Yes</td><td><code>casino_psqs</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-51f095c86811eb26af3c1b47512bc69bd9604b44%2Fcasino_sandwitch.png?alt=media" alt=""></td><td>Sandwitch</td><td>50</td><td>Yes</td><td><code>casino_sandwitch</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-86c2ba4aef7cd00d70a2dc61cdb93741d6bcd9f0%2Fcasino_sprite.png?alt=media" alt=""></td><td>Sprite</td><td>30</td><td>Yes</td><td><code>casino_sprite</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-0be59111011291d3712d346ac9f36cc9607b3c5f%2Frcore_vodka.png?alt=media" alt=""></td><td>Vodka Shot</td><td>100</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-ceb143ca10fc49fb98db66538cd4e268b2090de2%2Fcasino_decanter.png?alt=media" alt=""></td><td>The Mount Whiskey Shot</td><td>100</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-79b1e5aa4157f7bfb9932772d9c17e4e9889c2e5%2Fcasino_richard.png?alt=media" alt=""></td><td>Richard's Whiskey Shot</td><td>100</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-feb44e75bae94343ce2f227d8fdfeae554517e23%2Fcasino_macbeth.png?alt=media" alt=""></td><td>Macbeth Whiskey Shot</td><td>100</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-a5e66d6aca5f85da3c7e3cdeb592c631e85f9dbd%2Fcasino_silverchamp.png?alt=media" alt=""></td><td>Blêuter'd Champagne Silver</td><td>250</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-c120dbef9cabd8215a95383fe1da837181d29b91%2Fcasino_goldchamp.png?alt=media" alt=""></td><td>Blêuter'd Champagne Gold</td><td>500</td><td>No</td><td>-</td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-f6baba02d651de235c0697f3e6fcc4ee1fcc52e0%2Fcasino_diamondchamp.png?alt=media" alt=""></td><td>Blêuter'd Champagne Diamond</td><td>1000</td><td>No</td><td>-</td></tr></tbody></table>

## Adding your own item

Every item is keyed by its id, the same id the editor stores on a bartender. This is `casino_beer`, with every field it uses:

```lua
["casino_beer"] = {
    category = "Alcohol",
    inventoryName = "casino_beer",
    title = "Beer",
    description = "Cold, refreshing, and just what you need to forget that blackjack loss.",
    price = 40,
    removeThirst = true,
    buyEvent = { "rcore_casino:BarPurchase", "casino_beer" },
    showInSnackMenu = true,
    giveAnimation = {
        type = 1,
        prop = "prop_amb_beer_bottle",
    },
    useAnimation = {
        animDict = "mp_player_intdrink",
        animName = { "loop_bottle", "outro_bottle" },
        animTime = { 0.89, 0.99 },
        prop = "prop_amb_beer_bottle",
        attachPos = vector3(0.12, 0.008, 0.03),
        attachRot = vector3(240.0, -60.0, 0.0),
        bone = 18905,
    },
    useDrunkLevelIncrease = 0.1,
    icon = "images/casino_beer.png",
    useEvent = { "rcore_casino:BarUse", "casino_beer" },
}
```

`giveAnimation` plays when the bartender hands the item over. `useAnimation` plays when the player drinks or eats it, and is where the prop, its attachment to the hand, and the animation timings live. Shots and champagnes have no `inventoryName`, so they are drunk at the bar instead of going into the inventory.

### Fields

<table data-full-width="false"><thead><tr><th>Field</th><th>Type</th><th>Used for</th></tr></thead><tbody><tr><td><code>category</code></td><td>Text</td><td>Groups and sorts items in bartender menu</td></tr><tr><td><code>title</code></td><td>Text</td><td>Item display name in bartender/snack menu and warnings</td></tr><tr><td><code>description</code></td><td>Text</td><td>Item description shown in menus</td></tr><tr><td><code>price</code></td><td>Number</td><td>Purchase price</td></tr><tr><td><code>icon</code></td><td>Image path (Text)</td><td>Menu icon/image for item</td></tr><tr><td><code>buyEvent</code></td><td>Event array</td><td>Event triggered when player buys item (normally <code>{"rcore_casino:BarPurchase", itemId}</code>)</td></tr><tr><td><code>inventoryName</code></td><td>Text</td><td>Inventory item key to give on purchase</td></tr><tr><td><code>showInSnackMenu</code></td><td>Toggle</td><td>Whether inventory item appears in snack/use menu</td></tr><tr><td><code>useEvent</code></td><td>Event array</td><td>Event fired when item is used from snack menu (normally <code>{"rcore_casino:BarUse", itemId}</code>)</td></tr><tr><td><code>removeHunger</code></td><td>Toggle</td><td>Apply hunger restore effect on use</td></tr><tr><td><code>removeThirst</code></td><td>Toggle</td><td>Apply thirst restore effect on use</td></tr><tr><td><code>buyDrunkLevelIncrease</code></td><td>Number</td><td>Increase drunk level immediately on purchase</td></tr><tr><td><code>useDrunkLevelIncrease</code></td><td>Number</td><td>Increase drunk level when used from inventory/snack menu</td></tr><tr><td><code>canBuyWithBonus</code></td><td>Toggle</td><td>Allows free purchase using drink bonus counter</td></tr><tr><td><code>giveAnimation</code></td><td>Object</td><td>Configures bartender hand-over animation and prop</td></tr><tr><td><code>giveAnimation.type</code></td><td>Number</td><td>Selects animation preset for hand-over</td></tr><tr><td><code>giveAnimation.prop</code></td><td>Text (model)</td><td>World prop model bartender hands over</td></tr><tr><td><code>giveAnimation.offset</code></td><td>Vector3 (optional)</td><td>Extra hand-over scene offset</td></tr><tr><td><code>giveAnimation.propOffset</code></td><td>Vector3 (optional)</td><td>Extra prop offset for alignment</td></tr><tr><td><code>useAnimation</code></td><td>Object</td><td>Configures player consumption animation</td></tr><tr><td><code>useAnimation.animDict</code></td><td>Text</td><td>Animation dictionary name</td></tr><tr><td><code>useAnimation.animName</code></td><td>Text or list</td><td>Animation clip(s) played while using item</td></tr><tr><td><code>useAnimation.animTime</code></td><td>Number or list</td><td>When to stop/wait for each clip phase</td></tr><tr><td><code>useAnimation.prop</code></td><td>Text (model)</td><td>Prop attached to player while consuming</td></tr><tr><td><code>useAnimation.attachPos</code></td><td>Vector3</td><td>Attach position on hand bone</td></tr><tr><td><code>useAnimation.attachRot</code></td><td>Vector3</td><td>Attach rotation on hand bone</td></tr><tr><td><code>useAnimation.bone</code></td><td>Number</td><td>Ped bone ID for prop attachment</td></tr></tbody></table>
