Package Description

JAIL V2 (New and improved)

Video

Forum post

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

  • 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

Requirements

qb-core, qb-menu, qb-input, mhacking, oxmysql, progressbar