Welcome guest!

Welcome to Kalileaks! Find the best leaks, scripts, and mods for FiveM here.

! New users get 50 free credits just for signing up!

[ESX FULL UI] linden outlawalert | A Police alert system

hazeware89@gmail

New member
Joined
Feb 3, 2024
Messages
3
Reaction score
12
Points
3
Credits
50
68747470733a2f2f692e696d6775722e636f6d2f4f6d65354b44462e706e67



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.

Open mdt/sv_mdt.lua and locate RegisterServerEvent("mdt:newCall"), replace with:

RegisterServerEvent("mdt:newCall")
AddEventHandler("mdt:newCall", function(details, caller, coords, sendNotification)
call_index = call_index + 1
local xPlayers = ESX.GetPlayers()
for i= 1, #xPlayers do
local source = xPlayers
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer.job.name == 'police' then
if sendNotification ~= false then
TriggerClientEvent("InteractSound_CL:playOnOne", source, 'demo', 1.0)
TriggerClientEvent("mythic_notify:client:SendAlert", source, {type="inform", text="You have received a new call.", 5000, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' }})
end
TriggerClientEvent("mdt:newCall", source, details, caller, coords, call_index)
end
end
end)


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

LINK : https://cdn.discordapp.com/attachme...1871ddb9686376dd35604b989a85c1130f9f78725e9d&
 

Download

    You don't have membership please upgrade your account.
Back
Top