Configuration
SA uses convars for config values. For information on how to correctly install the config.cfg
file, see here.
Value List
Values Explained
Language
ic_sa_language
This value is the short code for the language you'd like to use.
You can check the list of available language by viewing this page.
If your language has not been translated yet, feel free to check out our Translation program, where you get rewarded for translating resources!
The default value is en-us
for English.
Kick Cheaters
ic_sa_kickCheaters
If this value is true
, the resource will kick any players it detects as "cheaters". Cheaters are determined by events sent to the server, and actions performed. False-positive as possible, but unlikely.
Regardless of this value, the resource will log events in the server console whenever it believes it has found a cheater.
Seconds Till Doors Close
ic_sa_secondsTillDoorsClose
This must be a whole number, more than or equal to -1
. Suggested value range: 140
- 160
.
This is the number of seconds after an Alert is activated, that any doors that were opened are automatically closed.
If value is -1
, doors will stay open until manually closed.
Seconds Till Lights Reset
ic_sa_secondsTillLightsReset
This must be a whole number, more than 0. Suggested value range: 125
- 150
.
This is the number of seconds after an Alert is activated, that Lights and Unit Indicators will reset.
Self-Closing Doors
ic_sa_closeDoorsOnDriveThrough
This value determines with doors should close once a vehicle has driven through them.
Close All Doors on Timeout
ic_sa_closeAllDoorsOnTimeout
This value determines if all open doors should close on an alert timeout, or only the doors opened via the alert.
For example, if Door One is opened manually, and Door Two opens as part of an alert.
When this value is true
, on timeout both Door One and Door Two will close.
When this value is false
, only Door Two is closed, Door One remains open.
Addon Traffic Lights Always Flash Yellow
ic_sa_addonTrafficLightAlwaysFlashYellow
When this value is true
, instead of turning off entirely when not alerted, Addon Traffic Lights will continuously flash yellow.
Alert Tone Sounds
ic_sa_tones
These values define what tones can be played. Each entry contains "human-readable name", and a "file name".
The human-readable name can be anything, but the file name must be the name of the sound file including the file extension.
Audio files must be placed inside the ui/assets
folder.
Tones can be any length and any audio file extension.
Tones can also not be tones, but re-recorded turnout messages; for example, one tone for each type of appliance.
The default value for this option is:
setr ic_sa_tones {
"Tone 1": "alert1.mp3",
"Tone 2": "alert2.mp3",
"Tone 3": "alert3.mp3"
}
NUI Volume
ic_sa_nuiVolume
This value is used to determine how loud the in-game NUI should be.
Must be a whole number between 1
and 10
, where 10
is the loudest.
Default value is 5
.
Manual Interactions (Target/Third-Eye Resource Support)
ic_sa_manualInteractions
If this value is true
, "Press E ..." interaction pop-ups and keybindings will be disabled, and instead events will be fired that can be used in editable/client/targeting.lua
; to enable support for OxTarget, QBTarget, or any other target/third-eye resource, changes will need to be made in this file.
For OxTarget or QBTarget, simply uncomment the lines under the sections named either OxTarget or QBTarget.
For any other target/third-eye resource, use the provided event handlers and variables to add your own exports/events. Reach out in Discord if you need help adding other resources.
The events in editable/client/targeting.lua
will not fire unless ic_sa_manualInteractions
is true
.
Slower Doors
ic_sa_slowerDoors
When this value is true
, doors will open and closer slower than normal to be more realistic.
If you do not want the resource to change the speed of the doors, set this value to false
.
If this value is true
and your doors do not open like they should, or need to be bumped/hit to be open, change this value to false
and it should resolve the issue.
Double Distance
ic_sa_doubleDistance
When this value is true
, the max distance check for station locations is doubled from the default 100 units, to 200 units.
Activate Traffic Lights from Buzzer Menu
ic_sa_trafficLightsFromBuzzer
When this value is true
, the option to temporarily activate the traffic lights, normally only available from the Door Controls menu, will also be available in the Buzzer menu.
Unless you know you need this option enabled (such as because your fire station MLOs are massive), you should leave this turned off.
Enabling this option can decrease client performance.
Alias Command
ic_sa_command
When this value is anything other than stationalert
, the value will be used to register an alias command.
This alias command can be used instead of the full stationalert
command.
For example, setting the value to sa
would allow the use of /sa <...>
for commands.
Default value is stationalert
.
HTTP Access Token
ic_sa_httpAccessToken
This is an optional config value that is required if server owners wish to use the included API.
This value is blank by default, and while blank, the API will reject all HTTP requests.
To enable the API you must provide a value to be used as a token.
API Whitelist
ic_sa_whitelistedIps
This is an optional config value that allows server owners to only allow HTTP requests from specific IP addresses.
To allow to requests from any IP address, set this value to []
.
The default value, 127.0.0.1
, should allow access from the local machine only on most systems.
Regardless of this config option, ic_sa_httpAccessToken
is required.
Default Light Models
ic_sa_wallLightModels
These values determine which prop/model should be used for de/activated Lights.
The default value for this option is:
setr ic_sa_wallLightModels {
"off": "hei_prop_wall_alarm_off",
"on": "prop_ic_wall_light"
}
ic_sa_wallLightModels
is a misnomer from when Lights could only be placed on walls, and not also ceilings.
Default Bollard Light Models
ic_sa_bollardLightModels
These values determine which prop/model should be used for de/activated Bollard Lights.
The default value for this option is:
setr ic_sa_bollardLightModels {
"off": "prop_ic_bollard_light_off",
"on": "prop_ic_bollard_light_on"
}
Default Traffic Light Models
ic_sa_trafficLightModels
These values determine which prop/model should be used for Traffic Lights.
The default value for this option is:
setr ic_sa_trafficLightModels {
"Red": "prop_ic_traffic_light_r",
"Yellow": "prop_ic_traffic_light_y",
"Green": "prop_ic_traffic_light_g"
}
Default Addon Traffic Light Models
ic_sa_addonTrafficLightModels
These values determine which prop/model should be used for Addon Traffic Lights.
The default value for this option is:
setr ic_sa_addonTrafficLightModels {
"Red": "prop_ic_addon_traffic_light_r",
"SolidYellow": "prop_ic_addon_traffic_light_y_s",
"FlashingYellow": "prop_ic_addon_traffic_light_y_f",
"None": "prop_ic_addon_traffic_light_n"
}
Default Status Lights Models
ic_sa_statusLightModels
These values determine which prop/model should be used for Status Lights.
The default value for this option is:
setr ic_sa_statusLightModels {
"None": "prop_ic_status_lights_off",
"Red": "prop_ic_status_lights_red",
"Green": "prop_ic_status_lights_green"
}
Default Unit Indicator Models
ic_sa_unitIndicatorModels
These values determine which prop/model should be used for Unit Indicators.
The default value for this option is:
setr ic_sa_trafficLightModels {
"None": "prop_ic_unit_indicator",
"Red": "prop_ic_unit_indicator_r",
"Green": "prop_ic_unit_indicator_g",
"Blue": "prop_ic_unit_indicator_b"
}
Default Door Controls Model
ic_sa_doorControlsModel
These values determine which prop/model should be used for Door Controls.
The default value for this option is:
setr ic_sa_doorControlsModel "prop_ic_door_controls"
Default Ceiling Speaker Model
ic_sa_ceilingSpeakerModel
These values determine which prop/model should be used for Ceiling Speakers.
The default value for this option is:
setr ic_sa_ceilingSpeakerModel "v_serv_metro_ceilingspeaker"
Default Exterior Speaker Model
ic_sa_exteriorSpeakerModel
These values determine which prop/model should be used for Exterior Speakers.
The default value for this option is:
setr ic_sa_exteriorSpeakerModel "h4_prop_h4_tannoy_01a"