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
  • openLaptop
  • closeUI
  • canUseApp
  • showNotification
  • addEmail
  • getPlayerEmailAddress
  1. tk_laptop
  2. Exports

Client

openLaptop

exports.tk_laptop:openLaptop()

Open laptop view, doesn't check for item

closeUI

exports.tk_laptop:closeUI()

Closes the laptop UI if it's open

canUseApp

exports.tk_laptop:canUseApp(appName)

Checks if player can access an app

  • appName: string

Return:

  • can: boolean

showNotification

exports.tk_laptop:showNotification(data)

Shows a notification on the laptop

  • data: table

    • title: string

    • message: string

    • type: 'inform' 'success' 'error'

addEmail

exports.tk_laptop:addEmail(data)

Adds a temporary email (email will be removed on server restart or player disconnect)

  • data: table

    • subject: string

    • body: string

    • from: string

getPlayerEmailAddress

exports.tk_laptop:getPlayerEmailAddress()

Returns player's current email address

  • Return:

    • emailAddress?: string

PreviousExportsNextServer

Last updated 11 months ago