<div align="center">
  <h1>xt-prison</h1>
  <a href="https://dsc.gg/xtdev"> <img align="center" src="https://github.com/xT-Development/.github/assets/101474430/d2fbd286-a0d5-4056-95cd-22cb3f526283" /></a><br>
</div>

# Prison Features:
- Random spawn locations when sent to jail, performs emote on spawn
- Configurable alert dialog when entering prison
- Check time / check-out zone (Configurable)
- Remove jobs when player is sent to prison (Configurable)
- Functions for any dispatch and emote resources (Configurable)
- Lifers feature based on player CIDs, includes export to check if player is a lifer by their source
- Toggleable feature to auto apply and remove prison clothes
- Canteen ped providing players with a drink and food item
- Doctor ped providing players with check-ups for heals/revives
  - Configurable function for devs to utilize their health/medical resources
- Prisoners roster
  - View a list of people currently in prison
  - Control their jail time
  - Unjail them
- Compatabile with [xt-prisonjobs](https://xtdev.tebex.io/package/5226873) prison addons. Adds jobs, crafting, trading, and more.

# Prison Break Features:
- Global statebags for prison break alarms and all prison gate terminals
- isBusy and isHacked states for gate terminals
- Configurable function to use any minigame for hacking the gate terminals
- Different random chances alarm is enabled for failed & successful hacking attempts
- Different random chances to remove items for failed & successful hacking attempts
- Minimum required police check for prison breaks
- Cooldowns on all gate terminals

# Dependencies:
- [ox_lib](https://github.com/overextended/ox_lib/releases)
- [ox_inventory](https://github.com/overextended/ox_inventory/releases)
- [ox_target](https://github.com/overextended/ox_target/releases)
- [ox_doorlock](https://github.com/overextended/ox_doorlock/releases)

# Supported Frameworks:
- 🟩 | QB / QBX
- 🟩 | ESX
- 🟩 | OX
- 🟩 | ND

# [Documentation](https://xtdev.gitbook.io/xt-docs/free-resources/xt-prison)

### Credits
S/o to [qb-prison](https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExa2ZtbDFndTg2ZG83YmYycmZqdWkybWp1aDQ3dnE1YW9oNGl5YW55aiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/OOQtlBzlVuiHe/giphy.gif) for pissing me off long enough to make ~~5, 6, 7~~, lost count... different prison resources.
