🤠 Wild Country Libs
Server API

Revive & Heal

VORP has these natively in core. RSG doesn't — it's normally owned by an ambulance/EMS job resource. wc_libs never errors when that resource is missing; it warns to console and returns false.

Revive(source)server

Revives a downed player.

ParamTypeReturns
sourceintegerboolean — whether it actually ran
underneath, on —
vorp_core — native
Core.Player.Revive(source)
rsg — delegates to ambulance job
exports['rsg-ambulancejob']:Revive(source)
-- if rsg-ambulancejob isn't running:
-- [wc_libs] Revive() called on RSG but 'rsg-ambulancejob' is not running — no-op.
Configurable export name. If your RSG server's ambulance job exposes a differently named export, point wc_libs at it in config rather than editing the adapter file directly.
wc_libs/shared/config.lua
WCLibConfig.RSGAmbulanceResource     = 'rsg-ambulancejob'
WCLibConfig.RSGAmbulanceReviveExport = 'Revive'
WCLibConfig.RSGAmbulanceHealExport   = 'Heal'
Heal(source)server

Heals a player to full health.

ParamTypeReturns
sourceintegerboolean — whether it actually ran
example — used after a treatment minigame
local ok = wc:Heal(source)
if not ok then
  -- ambulance job missing on RSG, or vorp_core out of date —
  -- check console, fall back to your own logic if needed
end