wasvendel scripts

wasvendel_health

Injury / health system: body region injury, snake poison, doctor menu, revive limit integration.

Requirements

  • VORP (or compatible RedM core)
  • oxmysql

Installation

  1. Unzip wasvendel_health.
  2. Put the wasvendel_health folder into your server resources directory.
  3. Import wasvendel_health_state.sql into your database.
  4. Add the resource to server.cfg after your framework core.
ensure oxmysql
ensure your_core
ensure wasvendel_health

Database

Import the wasvendel_health_state.sql file.

Configuration

Edit:

  • configs/config.lua
  • sv_config.lua
  • configs/lang.lua

Commands

Command Source Description
/mystatus Config.injuryPanelCommand Own injury panel
/doctor [targetServerId] hardcoded Doctor menu

Exports

No exports{} in the fxmanifest; runtime exports() calls.

Client (selection)

GetLocalInjuryStatusSnapshot, RequestPlayerInjuryStatus, OpenInjuryPanel, CloseInjuryPanel, PersistNow, GetInjuryPanelData, GetRegionInjury, GetBoneInjury, SetRegionInjury, SetBoneInjury, SetBoneHealth, ResetAllRegionInjury, GetBoneHealthMap, ApplyBoneHealthMap, BeginInjuryGrace, IsInjurySuppressed, IsInjuryCombatReady, DisarmInjuryCombat, ArmInjuryCombat, HealRegionInjury, FullHeal, snake poison API (GetSnakePoison, SetSnakePoison, ClearSnakePoison, …), OpenDoctorMenu, OpenDoctorMenuClosest

Server

Export Description
DoctorHealPlayer(doctorSource, targetServerId) Doctor heal
WasvendelHealthReviveSyncPlayer(targetSid) Revive sync
WasvendelHealthRevivePrecheckTarget(targetSid) Revive precheck
WasvendelHealthReviveConsumeAttempt(targetSid) Attempt consume
WasvendelHealthReviveRefundAttempt(targetSid) Attempt refund

New documentation page

The file is saved to the markdown/ folder. Editing is localhost-only.