Yes this is possible with all of my scripts! You would modify the en.lua file in locales/translations, or you can add a seperate file and copy the format, then change it to the name in the config.
is there compatibility with ps-dispatch?
Hello can you help me to install the alerts from qs-smartphone so that when a fire breaks out in the phone comes an alrt? unfortunately I do not get it done from their doc should you use that:
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local message = âInjured personâ â The message that will be received.
local alert = {
message = message,
â img = âimg urlâ, â You can add image here (OPTIONAL).
location = coords,
}
TriggerServerEvent(âqs-smartphone:server:sendJobAlertâ, alert, âambulanceâ) â âYour ambulance jobâ
TriggerServerEvent(âqs-smartphone:server:AddNotifiesâ, {
head = âGoogle My Businessâ, â Message name.
msg = message,
app = âbusinessâ
})
end
Best regards
I unfortunately do not get it
QBcore
Iâm still working on trying to find out why alerts are messing up at the moment, keep an eye on keymaster updates!
Itâs probably a silly question Does this generate fires even when thereâs no fire fighters on duty?
where would i add the cd_dispatch alerts and what mlo are you using
You would add it in Config.Alerts, the MLO shown in the video is Gabzâs.
Will this work on âES Extendedâ version â1.10.1â
Yes it will!
why is this using so much resources? i stopped it when it climbed up to 80.00ms. brought my frames down to 9fps
@this. Needing this to work with ps-dispatch? Any fix yet?
Still nothing.
Still nothing.
With what? Youâve never typed in this thread before - not a whole lot of context youâre giving us.
I was replying back to the dispatch thing Bee-RP posted but I dont know why it didnât appear as a reply.
It doesnât need a âfixâ it needs integration, the config has an alert config for you to insert your events as needed for custom alerts like ps-dispatch.
It passes all the data you need via the parameter shown in that config function, including coordinates.
Config.Alerts = {
client = function(notifyType, data) -- Each firefighter who can be alerted, on the client.
if notifyType == "startFire" then
ShowNotification(_L("fire_started"))
elseif notifyType == "stopFire" then
-- No notification required.
end
end,
server = function(notifyType, data) -- When the fire starts / stops, does not reference any firefighters.
local firefighters = GetFirefighters()
end,
}