pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 🏛️Banking
      • 👋Installation Guide
      • ⚙️Editable Files
      • Client Exports
      • Server Exports
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  • JailPlayer
  • offenseData
  • JailPlayers
  • offenseData
  • Jail Command
  • Unjail Player
  • Unjail Command
  • Shorten Jail
  • Shorten Jail Command
  • inJail
  • getPlayerJudgment
  1. Assets & Guides
  2. Police Job
  3. Server Exports

Jail System

JailPlayer

Use following export to jail some player.

exports['p_policejob']:JailPlayer(officerId, data)
  • officerId: number

    • Existing officer id

  • data: table

    • player: number

    • jail: number

    • fine: number

    • reason: string

    • offenses?: { [string]: offenseData }

offenseData

  • fine: number

  • label: string

  • jail: number

  • count: number

Return:

  • state: boolean or nil

Offenses are only required to display it properly in our Police MDT.


JailPlayers

Use following export to jail few players at the same time.

exports['p_policejob']:JailPlayers(officerId, data)
  • officerId: number

    • Existing officer id

  • data: table

    • players: { [index]: { identifier: string } }

    • jail: number

    • fine: number

    • reason: string

    • offenses?: { [string]: offenseData }

offenseData

  • fine: number

  • label: string

  • jail: number

  • count: number

Return:

  • state: boolean or nil

Offenses are only required to display it properly in our Police MDT.


Jail Command

Use following command to jail player [required permissions in config]

/jail targetId months
  • targetId: number

    • Existing player server id

  • months: number

    • Amount of months in jail


Unjail Player

Use following export to unjail player.

exports['p_policejob']:UnJailPlayer(playerId, targetId)
  • playerId: number or nil

    • Existing player server id

  • targetId: number

    • Existing player server id in jail


Unjail Command

Use following command to unjail player [required permissions in config].

/unjail targetId
  • targetId: number

    • Existing player server id in jail


Shorten Jail

Use following export to shorten player jail.

exports['p_policejob']:ShortenJailPlayer(playerId, targetId, months)
  • playerId: number or nil

    • Existing player server id

  • targetId: number

    • Existing player server id in jail

  • months: number

    • Amount of months to shorten


Shorten Jail Command

Use following command to shorten jail player [required permissions in config].

/shortjail targetId months
  • targetId: number

    • Existing player server id in jail

  • months: number

    • Amount of months to shorten


inJail

Check if player is currently in jail.

Player(playerId).state.inJail
  • playerId: number

    • Existing player server id

Return:

  • state: boolean

getPlayerJudgment

Check player remaining amount of months in jail.

exports['p_policejob']:getPlayerJudgment(playerId)
  • playerId: number

    • Existing player server id

Return:

  • months: number or 0

PreviousInteractionsNextMisc

Last updated 4 months ago

👮