๐งMail
Guide on how to configure your mailing/alert system for players
FOR LB-PHONE
Step 1: Navigate to mm_airdrop/client/config.lua
Step 2: Update PhoneNotify()
function, set it:
function PhoneNotify()
TriggerServerEvent('mm_airdrop:server:sendmail')
end
Step 3: Create a file in server folder naming mail.lua
and add this to the file
RegisterNetEvent('phone:server:sendmail', function()
exports['lb-phone']:SendAmberAlert(source, {
title = "Alert!!!",
content = "A Supply Drop has been spotted on the map! Go get it before someone else does!",
icon = "danger",
})
end)
Step 4: Add 'server/function.lua'
in server_scripts
in fxmanifest.lua. it should look like this:
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/interface.lua',
'server/bridge/*.lua',
'server/event.lua',
'server/function.lua',
'server/modules/*.lua',
'server/mail.lua'
}
FOR QS SMARTPHONE
Step 1: Navigate to mm_airdrop/client/config.lua
Step 2: Update PhoneNotify()
function, set it:
function PhoneNotify()
TriggerServerEvent('qs-smartphone:server:sendNewMail', {
sender = 'Dark Web',
subject = 'Alert!!!',
message = 'A Supply Drop has been spotted on the map! Go get it before someone else does!',
button = {}
})
end
Last updated