Server

showNotification

exports.tk_laptop:showNotification(data)

Shows a notification on the laptop

  • data: table

    • playerId: number

    • title: string

    • message: string

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

addEmail

exports.tk_laptop:sendEmail(data)

Sends an email from given address to given address (this is not a temporary email)

  • data: table

    • subject: string

    • body: string

    • from: string

    • to: string

getPlayerEmailAddress

exports.tk_laptop:getPlayerEmailAddress(identifier)

Returns player's current email address

  • identifier: string number

  • Return:

    • emailAddress?: string

Last updated