Introduction
A physical revivestation system where players scan for downed players nearby, call on-duty medics, and pay to have them revived
As many field stations as you create act as the front door — walk into range, press E, and, once a station's minimum medic count is met, pick a downed player nearby to notify the medics about or pay to revive.
Before you start
more_lib must be installed and started first. more_revivestation never revives anyone itself — it only fires TriggerClientEvent("esx_ambulancejob:revive", source) after a successful payment, so an ambulance/EMS resource that listens for that event must already be running, or players will pay and stay dead.
Features
- In-game station Creator (/revivestations, permission-gated via MS.Creator.groups) to add, move, teleport to, and delete stations, each with its own minimum-medic requirement — no more hand-editing coordinates in config
- Scans nearby downed players (MS.Settings.scan_distance) and renders their wound as a marker on a body silhouette, resolved from a death-reason → body-part lookup
- Notify Medic button (cooldown-gated via MS.Settings.notify_cooldown) alerts every on-duty medic and can log the alert to Discord
- Pay-to-revive flow (bank or cash, cooldown-gated via MS.Settings.pay_cooldown) that charges MS.Settings.price, runs a MS.Settings.revive_duration progress bar in the UI, and fires the main/revive event once payment succeeds, with an optional Discord log of the payment
- Map blips (MS.Blips) for every station, rebuilt automatically whenever the station list changes
Requirements
more_libresourcerequiredShared library dependency of the "More Scripts" resource pack, loaded before this resource. Provides MORE.IsFrameworkLoaded, MORE.IsPlayerLoaded, MORE.GetPlayerName, MORE.GetCharInfo, MORE.GetJob, MORE.GetMoney and MORE.RemoveMoney, used throughout main.lua.
main/reviveeventrequiredmore_revivestation only fires TriggerClientEvent("main/revive", source) after a successful payment; it never revives the player itself. An ambulance/EMS resource that listens for this event must already be running.
MORE.NotifyfunctionrequiredAll player alerts (blocked state, medic call, payment result, etc.) now go through more_lib's MORE.Notify instead of a hardcoded esx:showNotification call, so whatever notification system more_lib is wired to is what players see.
MS.JobsconfigrequiredEvery job listed in MS.Jobs must match a real job name from your framework. Only players with one of these jobs count toward a station's medic requirement and can be notified via the Notify Medic button.
MS.Creator.groupspermissionrequiredFramework permission groups (as a set) allowed to run /revivestations and open the Creator menu — typically your admin/superadmin ACE groups.
Last updated