LoveRP Scripts
TebexDiscord
  • ⚠️FiveM Asset System
  • 🎮ESX Legacy 1.9
  • 🚍Bus Control
    • Home
    • Installation
    • Konfiguration
    • Bedienung
  • 🚦Dep Traffic Lights
    • Home
    • Installation
    • Administration
    • Funktionsweise
    • Developer
  • ❗ECall
    • Home
    • Installation
    • Funktionsweise
    • Administration
  • 📟EmergencyDispatch
    • Home
    • Installation
    • Administration
      • Allgemeine Einstellungen
      • Jobverwaltung
      • Funkverwaltung
      • Wachenverwaltung
      • Fahrzeugverwaltung
      • Stichwortverwaltung
      • Ehrenamt
      • Melder Konfigurator
      • VPC Integration
      • Krankenhäuser verwalten
    • Notruf Tablet
    • Leitstelle
      • Einsatzverwaltung
      • Ehrenamtliche Kräfte
      • Fahrzeugverwaltung
      • Leitstellenkarte
    • Melder
    • Funkgerät
    • Developer
      • Ambulance Job Integration
      • smartfires
      • "Toxic" Feuer Script
      • Robberies Creator
      • esx_holdup
      • rcore_gangs
      • loaf_tv
      • Voice System Anpassungen
      • Exports
    • Fehlerbehebungen
  • 🚒EmergencyLadder
    • Home
    • Installation
    • Bedienung
  • Developer
  • 🚏IBIS Control
    • Home
    • Installation
    • Dienstcomputer
    • Bordrechner
    • Leitstelle
    • Fahrgast
    • Administration
    • Developer
    • DLC: Traffic
      • Installation
      • Bedienung
      • Administration
  • 💊Medical Equipment
    • Home
    • Installation
    • Konfiguration
    • Bedienung
  • 🚊Railway Sim
    • Home
    • Installation
      • Bombardier Flexity
    • Konfiguration
    • Bedienung
    • Developer
  • Post Job
    • Home
    • Installation & Konfiguration
    • Bedienung
  • 🛏️Power Stretcher
    • Home
    • Installation & Konfiguration
    • Bedienung
  • 🎤Sepura Radio
    • Home
    • Installation
    • Bedienung des Funkgeräts
    • Whitelist
  • 🛠️Technical Dispatches
    • Home
    • Installation
    • Administration
    • Einsätze
      • Baum Einsatz
      • Bombenfund
      • Gas Einsatz
      • Glasscherben
      • Ölspur
      • Spreizer u. Glasmaster
      • Strom Einsätze
      • Tier Einsatz
      • Türöffnung
    • Credits
    • Developer
  • Traffic Display
    • Home
    • Installation & Konfiguration
    • Bedienung
    • Developer
  • 🎒Your Equipment
    • Home
    • Installation
    • Bedienung
    • Administration
Powered by GitBook
On this page
  • 1. Medical Equipment herunterladen und installieren
  • 2. Items
  • 2.1. ESX Limit
  • 2.2. ESX Weight
  • 2.3. QBCore
  • 3. Funktionen in visn_are einfügen
  • 3.1. neue Aktionspunkte im Gesundheitsmenü
  • 3.2. Zugang als Voraussetzung für Medikamente und Infusionen
  • 3.3. Übersetzungen einfügen
  • 3.4. actions.lua und de.json als Komplett Version
  • 4. Notfallrucksack in YourEquipment
  1. Medical Equipment

Installation

Last updated 5 months ago

Ich empfehle zur Installation von Scripts WinSCP FileZilla überträgt in den meisten Fällen einige verschlüsselte Dateien nicht. Dadurch kann es passieren, dass die Scripts nicht funktionieren!

Um Medical Equipment vollständig nutzen zu können, ist das Script "visn_are" notwendig.

1. Medical Equipment herunterladen und installieren

Nach dem Kauf von Medical Equipment über den Tebex Store kannst du es unter folgendem Link herunterladen und über ein FTP Programm auf deinem Server hinzufügen:

Füge Medical Equipment anschließend am Ende der Start Config (beispielsweise über txAdmin) hinzu.

start [MEDIC_EQUIP]

2. Items

Mit Medical Equipment werden neue Funktionen in visn_are hinzugefügt. Dafür sind neue Items notwendig.

2.1. ESX Limit

INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('cpr_machine', 'LUCAS 3', 10, 0, 1);
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('iv_zugang', 'i.v. Zugang', 10, 0, 1);
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('io_zugang', 'i.o. Zugang', 10, 0, 1);
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('ampullarium', 'Ampullarium', 10, 0, 1);
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('stifneck', 'Stifneck', 10, 0, 1);

2.2. ESX Weight

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('cpr_machine', 'LUCAS 3', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('iv_zugang', 'i.v. Zugang', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('io_zugang', 'i.o. Zugang', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ampullarium', 'Ampullarium', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('stifneck', 'Stifneck', 1, 0, 1);

2.3. QBCore

Script: qb-core Dateiname: shared/items.lua

['cpr_machine'] 			 	 = {['name'] = 'cpr_machine', 			  			['label'] = 'LUCAS 3', 				['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'cpr_machine.png', 				['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'LUCAS 3 Thoraxkompressionssystem'},
['iv_zugang'] 			 	 = {['name'] = 'iv_zugang', 			  		['label'] = 'i.v. Zugang', 			['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'iv_zugang.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'intravenöser Zugang'},
['io_zugang'] 			 	 = {['name'] = 'io_zugang', 			  			['label'] = 'i.o. Zugang', 			['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'io_zugang.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'intraosärer Zugang'},
['ampullarium'] 			 	 = {['name'] = 'ampullarium', 			  			['label'] = 'Ampullarium', 			['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'ampullarium.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'Notarzt Ampullarium'},
['stifneck'] 			 	 = {['name'] = 'stifneck', 			  			['label'] = 'Stifneck', 			['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'stifneck.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'Stifneck zur Immobilisation der HWS'},

3. Funktionen in visn_are einfügen

3.1. neue Aktionspunkte im Gesundheitsmenü

Im Download ist ein Ordner mit dem Namen "visn_are" enthalten. Der dort enthaltene Ordner "plugins" ist in das "visn_are" Script einzufügen. Die Aktionen in der Datei "insert_into_actions.lua" sind in folgende Datei hinzuzufügen: visn_are/script/entities/actions.lua Füge den Abschnitt ["diagnoses"] ans Ende der entsprechenden Aktionsliste hinzu.

Füge den Abschnitt ["cpr"] ans Ende der entsprechenden Aktionsliste hinzu.

3.2. Zugang als Voraussetzung für Medikamente und Infusionen

Damit für Medikamente und Infusionen der i.v./i.o. Zugang Voraussetzung ist, ist folgende Änderung notwendig. Suche in der Datei "actions.lua" nach "for _, volume in pairs(v.availableVolumes) do" Ändere hier folgenden Abschnitt "condition":

condition = function(healthBuffer, bodyPart) return healthBuffer.bodyParts[bodyPart].zugang == true and not healthBuffer.bodybag end,

Suche jetzt nach "for k, v in PairsByKeys(MEDICATIONS) do" Ändere hier folgenden Abschnitt "condition":

condition = function(healthBuffer, bodyPart) return healthBuffer.bodyParts[bodyPart].zugang == true and not healthBuffer.bodybag end,

3.3. Übersetzungen einfügen

Datei: visn_are/script/languages/de.json Füge hier die Zeilen aus der Datei "insert_into_de.json" am Ende ein:

3.4. actions.lua und de.json als Komplett Version

Anbei sind auch die beiden Dateien als modifizierte Version verfügbar. Stand: Update vom 25.05.2024 actions.lua: visn_are/script/entities de.json: visn_are/script/languages

4. Notfallrucksack in YourEquipment

Der Notfallrucksack kann in der Config als benutzbares Item eingestellt werden. Ebenso ist es möglich, den Rucksack mit YourEquipment in das Geräte Menü einzubinden. Öffne hierzu die Administration von YourEquipment und klicke auf "Custom Geräte" -> "neu" Gib als Name "Notfallrucksack" an und wähle das Bild aus. Auf der rechten Seite ist "Trigger Client Event" auszuwählen und folgendes Event einzutragen. medic_equipment:bag

Das Feld "Argument" bleibt leer.

💊
https://store.veryinsanee.space/package/5215195
Dashboard - Cfx.re Portal
Logo
22KB
actions.lua
9KB
de.json
Page cover image