[QB] qb_tk_jail - Prison Escape, 5 Prison Jobs & More

TK_JAIL V2 (New and improved)


qb_tk_jail

[ Video ]
[ ESX version ]

About

  • Well-optimized

    • 0.00 ms | Idle
    • 0.05 ms - 0.10 ms | In usage
  • Uses FiveM Asset Escrow system, but if there is anything you would like to get changed or added to the editable file, contact me and I can probably change it!

  • Highly customizable (see config below)

  • Features

    • Police can jail, lockup or unjail players with commands or you can add the exports to your police job
    • All player items will be taken from the player when he is jailed, and he can later take them back from a certain place
    • Jail time will be stored in database and retrieved again, when the player connects back, you can also change if you want the time to pass also when the player is offline
    • In jail and lockup, if player goes too far, he will be teleported back (can be turned off)
    • In jail, there are 5 different jobs that the player can do
    • By doing these jobs, player can earn money or shorten his sentence (can be changed in the config)
    • The player can also search places around the jail where he can find stuff like money, phones and food
    • There are also beds in the jail that will heal the player when slept in
    • Player can also escape from the prison
      • You will need an explosive and a handmade lighter that you can purchase from the NPC
      • You can place the explosive on ground and light it, and after it blows up, you are free
      • Police will get a notification, when a player escapes the prison
    • Players can set their home cell
      • In your home cell, you have a personal stash where you can store your items and they will always stay there
      • Jail cigarette is an item that is used as a currency to purchase different items from a NPC inside the jail
        • You can get jail cigarettes from doing tasks and searching places
    • Includes logs
  • Commands

    • /jail (id) (time) - put player in jail
    • /lockup (id) (time) - put player in lockup
    • /lockup1-5 (id) (time) - put player in lockup in a certain cell, eg. /lockup1 will place player in cell one (cells need to be set in config)
    • /unjail (id) - unjail player
  • Exports

    • exports[‘qb_tk_jail’]:jailMenu()
      • Opens the jailing menu
    • exports[‘qb_tk_jail’]:lockUpMenu()
      • Opens the menu where you can put people in lockup
    • exports[‘qb_tk_jail’]:unjail()
      • Unjail neareast player
    • exports[‘qb_tk_jail’]:jail(targetId, time)
      • Jail a player with the specified ID for a specified time
Screenshots

Config

Purchase (14.99€ + VAT)


My other QBCore Scripts


Code is accessible No
Subscription-based No
Lines (approximately) ~2500
Requirements qb-core, qb-menu, qb-input, mhacking, oxmysql, progressbar
Support Yes
3 Likes

Update 1.0.1

  • Fixed stashes not working sometimes

Update 1.0.2

  • Fixed food delivery job not working on rare occasions
  • Fixed jail cigarettes not being given to player when doing prison jobs

Update 1.0.3

  • Fixed sql file

Update 1.0.4

  • Added server side export for jailing exports.qb_tk_jail:jail(playerId, time)

Update 1.0.5

  • Player clothes will now be loaded upon release from jail

Update 1.0.6

  • Moved events handling items to the editable server file