# Bartenders

The **Bartenders** editor page manages bartender NPCs used by the casino bar system.

<div data-full-width="false"><figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-c5738abacdf0f5048809d48cb7746c2680e9783b%2Fcapt_bartender.png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Editor Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Type</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Text</td><td>Choose a display name for the bartender</td></tr><tr><td>Items</td><td>Multi-select list</td><td>Select which drinks/items this bartender can sell</td></tr><tr><td>Ped model</td><td>Select/List</td><td>Choose which NPC model the bartender uses</td></tr><tr><td>VIP only</td><td>Toggle</td><td>Restrict this bartender to VIP players only</td></tr><tr><td>Society enabled</td><td>Toggle</td><td>Enable society/account integration for this bartender</td></tr><tr><td>Society name</td><td>Text/List</td><td>Set the society/account name used when society is enabled</td></tr><tr><td>Proximity</td><td>Number</td><td>Set proximity distance in meters</td></tr><tr><td>Load only interiors</td><td>Toggle</td><td>Load this bartender only while players are in interiors</td></tr></tbody></table>

### BartenderItemList

Items available in the bartender editor are loaded from `BartenderItemList` in `rcore_casino/configs/bartender.lua`. If you want to be able to select a new drink/item in the editor, you must add it to this item list first.

<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>5</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>10</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>5</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>5</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>5</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>5</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>5</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>5</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>10</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>5</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%2Fcasino_vodka.png?alt=media" alt=""></td><td>Vodka Shot</td><td>5</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-1e2930860b6ef644414dcde806051fa83a4356a2%2Fcasino_beer.png?alt=media" alt=""></td><td>The Mount Whiskey Shot</td><td>5</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>5</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>5</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>5</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>5</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>5</td><td>No</td><td>-</td></tr></tbody></table>

### BartenderItemList Field Reference

Use this as a quick guide when creating your own bartender items in `rcore_casino/configs/bartender.lua` (`BartenderItemList`).

<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>
