TK Scripts
  • Welcome
  • Common questions
  • Common problems
  • esx_tk_mechanicjob
    • Common questions & problems
  • tk_bosstablet
    • Common questions & problems
  • tk_jail
    • Common questions & problems
    • Exports
      • Client
      • Server
  • tk_laptop
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_mdt
    • Fivemanage setup (for images)
    • Common questions & problems
    • Config
    • Exports
      • Client
      • Server
  • tk_dispatch
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_housing
    • Setup
    • Common Problems
    • Config
    • Exports
      • Client
      • Server
  • tk_drugs
    • Common Questions & Problems
    • Config
  • tk_zipline
    • Config
  • tk_houserobbery
    • Config
  • tk_evidence
    • Config
    • Exports
      • Client
      • Server
  • tk_policejob
    • Config
    • Exports
      • Client
      • Server
Powered by GitBook
On this page
  • unjail
  • jail
  • seizeItems
  • getSentence
  1. tk_jail
  2. Exports

Client

unjail

exports.tk_jail:unjail(targetId, teleport)

Unjails player with given ID. Player triggering this export needs to be a police.

  • targetId: string

  • teleport?: boolean

jail

exports.tk_jail:jail(targetId, time, jailType, cellIndex, teleport, notes)

Jails player with given ID. Player triggering this export needs to be a police.

  • targetId: string

  • time: int

  • jailType?: 'jail' 'lockup'

  • cellIndex?: int

  • teleport?: boolean

  • notes?: string

seizeItems

exports.tk_jail:seizeItems(targetId)

Seizes item from target. Player triggering this export needs to be a police.

  • targetId: int

getSentence

exports.tk_jail:getSentence(targetId)

Gets the sentence of target in minutes.

  • targetId: int

  • Return:

    • sentence: int

PreviousExportsNextServer

Last updated 7 months ago