AP Scripts Documentation
  • AP Scripts Documentation
  • Scripts
    • AP Court
    • AP Government
    • AP Documents
    • AP AddonJob
    • AP Questionnaire
  • Recommended Phone
  • Script Snippets
  • Phone Integrations
Powered by GitBook
On this page

Phone Integrations

JPR PHONE

PreviousScript Snippets

Last updated 1 year ago

Open webhook.lua and at the bottom for the function customphonefunction add the example below in that function and configure to make sure the correct arguments are passing.

TriggerEvent('jpr-phonesystem:server:sendEmail', {
    Assunto = data.subject, -- do not change as data.subject is correct.
    Conteudo = data.message, -- make sure that this corresponds with the correct argument from above.
    Enviado = data.email, -- do not change as data.email is correct.
    Destinatario = data.identifier, -- make sure that this corresponds with the correct argument from above.
 })

Example from server/webhook.lua at the bottom.