Phones

phones.lua

This module allows you to send in-game mail/messages to player phones, depending on the phone system integrated (e.g., QB, NPWD).

sendPhoneMail(data)

Sends a mail message to a player's in-game phone app.

Typically used to notify players about deliveries, missions, or reminders.

I attempted to make the function as unified as possible but its hard to do between all the phone scripts and only working with their doc's

I would love to expand this but I need help from others for this one

Parameters:

  • data (table): Must contain phone/mail system-compatible fields like sender, subject, message, and receiver.

Example:

sendPhoneMail({
    subject = "Welcome!",
    sender = "Admin",
    message = "Thank you for joining our server.",
    actions = {
        { label = "Reply", action = replyFunction }
    }
})

Last updated