# Canteen

## Overview

* Our Prison canteen allows to Prisoners get free food package (enabled by default) so they dont starve to death with 5 minute cooldown (can be changed) for taking next package.
* Configuration path: config.lua - Config.Canteen

### Config file structure

```lua
Canteen = {
    Enable = true, -- This is used for enabling canteen system
    CreditItems = {
        { name = 'water', price = 30 },
        { name = 'fries', price = 7 },
        { name = 'sprunk', price = 7 },
        { name = 'cigarrete', price = 80 },
    },
    
    FreeFoodPackage = true, -- This is used for enabling free food package system
    FreeFoodPackageCooldown = 5, -- This is the cooldown for free food package system (5 min)
    FreeFoodPackageItems = {
        { name = 'water', count = 1 },
        { name = 'sprunk', count = 1 },
    }
},
```

## Gallery

<figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-518f8e7597b0edbc8c427805d634dd1350ad5ac7%2Fprison_canteen_paid.png?alt=media" alt=""><figcaption><p>Canteen paid</p></figcaption></figure>

<figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-086e62d53e5e7e7ca7f85fc71b9f1d8315b9f507%2Fprison_canteen_free.png?alt=media" alt=""><figcaption><p>Canteen free</p></figcaption></figure>

## Features

* Includes free food package so Prisoners can get some food
* Includes paid package which includes better items, player get credits by doing job in Prison.

## Location

* By default can be found under blip named `Prison Canteen` with icon/symbol (C)
* The location can be different for each map preset and can be adjusted in `rcore_prison/data/presets/yourPrisonMap.lua`.

<figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-044055fd8ecb025b6550904e08eaa2761e4c62f0%2Fprison_canteen_location.png?alt=media" alt=""><figcaption><p>Canteen free</p></figcaption></figure>
