Configuring this resource
🧭 Installation
Place the resource in your
resources/
directory.Add to your
server.cfg
:ensure MirrorParkStudios-Mobilising
Modify
Shared/Config.lua
to suit your station layout and call signs.Add your sound files to the appropriate directory.
Restart the server.
⚙️ Configuration
All configuration is handled inside:
Shared/Config.lua
🎯 Events
Server-Side Turnout
TriggerEvent("MPS-TurnoutSystem:Server:TurnoutCallsigns", callsigns, turnoutMessage)
callsigns
: An array like{"E435", "E431"}
turnoutMessage
: A string (can include HTML<br />
for formatting)
Server-Side Station Broadcast
TriggerEvent("MPS-TurnoutSystem:Server:StationMessage", stations, message, informationMessage)
stations
: An array like{"F22", "F23"}
message
: A string message to broadcastinformationMessage
:true
/false
- whether to play the info message tone
Server-Side Standby Order
TriggerEvent("MPS-TurnoutSystem:Server:StandbyOrdering", callsigns, station)
callsigns
: An array like{"E435", "E431"}
station
: A string, e.g.,"F22"
📦 Sample Station Config
Config.Stations = {
["F22"] = {
Speakers = {
{Coords = vector3(-333.16, -1535.14, 37.98), Radius = 12.5},
...
},
MobilisingComputer = vector3(-328.74, -1538.37, 27.77),
Teleprinter = vector3(-328.16, -1537.3, 28.65),
InteractionDistance = 2.0,
TurnoutOrder = {
"MOBILISE",
"CALLSIGNS",
"TURNOUTTONE"
}
}
}
💬 Commands
Players can open the mobilising interfaces manually:
Config.Commands = {
MobilisingScreen = "viewMobiliser",
MobilisingScreenKeybind = "E",
Teleprinter = "viewTeleprinter",
TeleprinterKeybind = "L"
}
🎧 Sound Files
Sound files (e.g. E431.ogg
, turnouttone.ogg
) should be placed in your html/sounds/
or wherever your resource defines. They must match the names defined in the config but do not include file extensions.
Last updated