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:
tabletitle:
stringmessage:
stringtype:
'inform''success''error'
addEmail
Adds a temporary email (email will be removed on server restart or player disconnect)
data:
tablesubject:
stringbody:
stringfrom:
string
getPlayerEmailAddress
Returns player's current email address
Return:
emailAddress?:
string
Last updated