Page cover image

Installation

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. https://store.veryinsanee.space/package/5215195

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

22KB
actions.lua
9KB
de.json

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.

Last updated