Teammate Revive
Settings for the Teammate Revive feature.
General
| Setting | Default | What it does |
|---|---|---|
Enabled | true | Turn teammate revive on |
OnlyWithoutEMS | true | Only allow it while no EMS is on duty |
EMSJobs | { ambulance = true, ems = true } | Jobs that count as EMS (only while on duty) |
SameGangOnly | true | Only revive members of your own gang. false lets any gang member revive any downed player |
Cooldown | 120 | Seconds before the same player can revive again |
MaxDistance | 2.5 | Range to the downed player |
Item
| Setting | Default | What it does |
|---|---|---|
Item | 'firstaid' | Item needed to revive. false = no item needed |
RemoveItem | true | Use up one item per revive |
The item must exist in your inventory's item list. If your server has no firstaid item, use any medical item you already have, for example 'bandage' or 'medikit'.
Revive
| Setting | Default | What it does |
|---|---|---|
Duration | 10000 | Length of the revive in milliseconds |
SkillCheck | easy, easy, medium | ox_lib skill check before the revive. false = none |
Health | 25 | Health (in %) the teammate gets up with. false = keep what your ambulance script gives |
Anim | CPR | Animation played while reviving |
Example
Settings.TeamRevive = {
Enabled = true,
OnlyWithoutEMS = true,
EMSJobs = { ambulance = true, ems = true, fire = true },
SameGangOnly = true,
Item = 'medikit',
RemoveItem = true,
Duration = 15000,
SkillCheck = false,
Health = 40,
Cooldown = 300,
MaxDistance = 2.5,
Anim = { dict = 'mini@cpr@char_a@cpr_str', clip = 'cpr_pumpchest' },
}