* Intended for use with [ESX] Hypaste RP’s Mobile Data Terminal by distritic, but it is not required *
discord
For more support or to see more of my resources you can join myInstructions
Download either the latest release or the latest repo. Just drag and drop.
Ensure you set Config.Debug to false so cops don't trigger a bunch of warnings, and to disable debug information printing into the console.
If you want 100% report chance then leave Config.DebugChance, though I recommend disabling it.
Share any feedback on the thread
Custom alerts
Check the for existing examples.
For example, if we were to edit one of the jewelry heist scripts, you can replace the default method for alerting the police with the following
local data = {displayCode = '211', description = 'Robbery', isImportant = 0, priority = 'High', recipientList = {'police'}, length = '10000', infoM = 'fa-info-circle', info = 'Vangelico Jewelry Store' units = {length = 0}}
local dispatchData = {dispatchData = data, caller = 'Alarm', coords = vector3(-633.9, -241.7, 38.1)}
TriggerEvent('wf-alerts:svNotify', dispatchData)
You can define infoM2 and info2 for an additional line of text. If you are triggering the event from a client make sure you use TriggerServerEvent.
You can use the below code to use the report chance export. Setting the last number higher will reduce the likelihood of a notification being sent.
if exports['linden_outlawalert']:zoneChance('Custom', 2) then
do stuff
end
gcphone 911 support
Locate function notifyAlertSMS
in esxaddonsgcphone-s.lua
. Below local messText = alert.message
add
if number == 'police' or number == 'ambulance' then
TriggerEvent('wf-alerts:svNotify911', messText, alert.numero, GetEntityCoords(GetPlayerPed(alert.source)))
end
Credits:
Jager_bom for esx_outlawalert
Stroudy for WF_Alerts https://forum.cfx.re/t/dev-release-standalone-wf-alerts/1029331
distritic for Hypaste RP's MDT https://forum.cfx.re/t/esx-hypaste-rps-mobile-data-terminal-reports-warrants-calls-searches-more/1701472/1