Third-Party Resources
This page explains how to integrate SA with third-party resources.
zFires
Follow the steps below to create alerts when a player started fire is created, and when automatic incidents are created.
- Inside
inferno-station-alert
, openeditable/server/events.lua
. - Locate the
Temporary zFires Hook
, then uncomment (remove the--
) the section below. - Inside
z_fire
, opencore/config.lua
. - Locate
integrations = {...}
, then add the following under['infernoPager'] = ...
:['infernoStationAlert'] = true, -- @comment: https://store.inferno-collection.com/category/sa
- Inside
z_fire
, opencore/server/classes/utils.lua
. - Locate
if integrations['infernoPager'] then
, then add the following underneath:if integrations['infernoStationAlert'] then
exports["inferno-station-alert"]:newAlertNearestStationWithPlayers(incident.data.pos, {
["message"] = "-station-, " .. incident.location .. ", " .. incident.description,
["unitColors"] = {"red"}
})
end
You can customize the exports
to liking, see here for more information.
In a future update of zFires, this code will be added as part of the zFires download - beware of duplication when updating.
CD_Dispatch
Follow the steps below to create alerts when a new notification is created for one or more specific jobs.
- Inside
inferno-station-alert
, openeditable/server/events.lua
. - Locate the
CodeSign Dispatch (CD_Dispatch) Hook
, then uncomment (remove the--
) the section below. - Update
fireJobs
with the names of jobs you would like to use for alerts.
You can customize the exports
to liking, see here for more information.
Emergency Dispatch
Follow the steps below to create alerts when a new notification is created for one or more specific stations.
- Inside
inferno-station-alert
, openeditable/server/events.lua
. - Locate the
LoveRP Emergency Dispatch
, then uncomment (remove the--
) the section below. - Update
stationLocations
as you wish.
You can customize the exports
to liking, see here for more information.
Smart Fires
Follow the steps below to create alerts when a player started fire is created, and when automatic fires are created.
- Inside
SmartFires
, openconfig.lua
. - Locate
infernoStationAlert = {...}
, and setenabled
totrue
, then editunitIndicatorColors
andtone
as you wish.- Leaving
tone
empty will use the default tone. - Set
unitIndicatorColors
to{}
to not have any colors.
- Leaving
You can customize the exports
to liking, see here for more information.
Fire Alarm Reborn
Follow the steps below to create alerts when a fire alarm is activated.
- Inside
inferno-fire-alarm-reborn
, openeditable/server/events.lua
. - Locate the
Inferno Station Alert - Uncomment below to use
, then uncomment (remove the--
) the section below.
You can customize the exports
to liking by editing editables/server/station-alert.lua
. For more information on exports
, see here.