EMS

A comprehensive character damage, injuries, death, and EMS overhaul.

Damage causes injuries. Injuries cause effects. Injuries requirement treatment. Skins can be used to optionally effect death cycle.

Resource Content

Dependencies

Conflicting Resources

  • qb-ambulancejob

  • esx_ambulancejob

  • Virtually any other resource that attempts to control the death/respawn cycle. NOTE: If your server has baseevents (qb-core default), it does not need to be removed.

Installation

  1. Ensure ti_utils and ti_emsProps are installed.

  2. Execute the query below (or from ti_ems.sql)

CREATE TABLE IF NOT EXISTS `character_damage` (
  `uid` varchar(60) NOT NULL,
  `state` tinyint(2) NOT NULL DEFAULT 0,
  `method` varchar(50) NOT NULL DEFAULT 'unknown',
  `time` int(11) NOT NULL DEFAULT 0,
  `skeletal` longtext NOT NULL DEFAULT '[]',
  `injuries` longtext NOT NULL DEFAULT '[]',
  `items` longtext NOT NULL DEFAULT '[]',
  `skin` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  1. Check all data files for configuration options that you may want to change.

  2. Add start ti_ems to your server.cfg.

Framework Integration

A bridge module has been supplied for both qb-core and esx (found in src/bridge/) to link the logic of this resource with the default "death state" for those frameworks.

No additional modification should be required to any resource.

Last updated