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
Last updated