Jedes Werkzeug und Medikament in Medical Creator ist ein normales Inventar-Item: der Defibrillator, mit dem ein Sanitäter wiederbelebt, die Pinzette, die Blutungen behandelt, die Schmerzmittel, die ein Spieler selbst nimmt. Registriere sie einmal in deinem Inventar und kopiere die Bilder aus dem Ordner [img] in dessen Bildordner.
Was jedes Item tut#
Item | Verwendet von | Was sie bewirkt |
|---|---|---|
| EMS | Erforderlich für die CPR-Wiederbelebung. Wird nie verbraucht. |
| EMS / jeder | Die Aktion Heal. Volle Heilung, wenn ein Sanitäter es an einem Patienten benutzt, eine kleine Heilung bei dir selbst. Wird verbraucht. |
| EMS | Die Aktion Sedate: Der Patient geht 8 Minuten lang in den Ragdoll. Wird verbraucht. |
| EMS | Behandelt Blutungen an einem Körperteil aus dem Verletzungsbericht. |
| EMS | Behandelt Prellungen. |
| EMS | Behandelt Verbrennungen. |
| EMS | Eine Tasche, die du am Einsatzort ablegst; Sanitäter nehmen Behandlungswerkzeuge, einen Defibrillator, ein Medikit oder ein Beruhigungsmittel daraus. |
| EMS | Spawnt überall eine Trage, ohne Krankenwagen. |
| Jeder | Heilt 20 % der fehlenden Gesundheit in 7 Sekunden. |
| Jeder | Medikamente mit einer Dauer und Nebenwirkungen. Verwendung → Medikamente listet jedes auf. |
Item-Namen werden festgelegt in
config/main.lua(Config.AmbulanceItems,Config.TreatmentItems,Config.MedicalSystem,Config.BandageItem) undconfig/stretcher.lua. Benenne eines dort und in deinem Inventar zusammen um.bandagewird bei den meisten Inventaren bereits mitgeliefert — überspringe es, wenn deins es hat.
Die Items hinzufügen#
Füge es ein in qs-inventory/shared/items.lua oder qb-core/shared/items.lua und kopiere die Bilder nach qs-inventory/web/dist/images/ oder qb-inventory/html/images/. Qbox-Server nutzen meist ox_inventory — nutze diesen Tab.
['defib'] = { ['name'] = 'defib', ['label'] = 'Defibrillator', ['weight'] = 0, ['type'] = 'item', ['image'] = 'defib.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Portable defibrillator used to revive unconscious patients.' },
['medikit'] = { ['name'] = 'medikit', ['label'] = 'First Aid Kit', ['weight'] = 0, ['type'] = 'item', ['image'] = 'medikit.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Basic first aid kit with bandages, antiseptic, and painkillers.' },
['sedative'] = { ['name'] = 'sedative', ['label'] = 'Sedative Syringe', ['weight'] = 0, ['type'] = 'item', ['image'] = 'sedative.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Injectable sedative that calms or puts the patient to sleep.' },
['tweezers'] = { ['name'] = 'tweezers', ['label'] = 'Tweezers', ['weight'] = 0, ['type'] = 'item', ['image'] = 'tweezers.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Tool used to remove bullets or debris from wounds.' },
['icepack'] = { ['name'] = 'icepack', ['label'] = 'Ice Pack', ['weight'] = 0, ['type'] = 'item', ['image'] = 'icepack.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Cold pack to reduce swelling and bruising.' },
['burncream'] = { ['name'] = 'burncream', ['label'] = 'Burn Cream', ['weight'] = 0, ['type'] = 'item', ['image'] = 'burncream.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Medicated cream that prevents infection in burn wounds.' },
['medbag'] = { ['name'] = 'medbag', ['label'] = 'Medical Bag', ['weight'] = 0, ['type'] = 'item', ['image'] = 'medbag.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Bag used by medics to store medical tools and supplies.' },
['stretcher'] = { ['name'] = 'stretcher', ['label'] = 'Stretcher', ['weight'] = 0, ['type'] = 'item', ['image'] = 'stretcher.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Used to transport injured or unconscious players safely.' },
['bandage'] = { ['name'] = 'bandage', ['label'] = 'Bandage', ['weight'] = 0, ['type'] = 'item', ['image'] = 'bandage.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Patches up small wounds and restores some health.' },
['painkiller'] = { ['name'] = 'painkiller', ['label'] = 'Painkillers', ['weight'] = 0, ['type'] = 'item', ['image'] = 'painkiller.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Pills that temporarily reduce pain and stabilize the patient.' },
['morphine'] = { ['name'] = 'morphine', ['label'] = 'Morphine Syringe', ['weight'] = 0, ['type'] = 'item', ['image'] = 'morphine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Strong painkiller used in serious injuries to reduce pain.' },
['hemostatic_agent'] = { ['name'] = 'hemostatic_agent', ['label'] = 'Hemostatic Agent', ['weight'] = 0, ['type'] = 'item', ['image'] = 'hemostatic_agent.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Stops bleeding instantly. Ideal for deep cuts or gunshot wounds.' },
['burn_gel'] = { ['name'] = 'burn_gel', ['label'] = 'Burn Gel', ['weight'] = 0, ['type'] = 'item', ['image'] = 'burn_gel.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Soothing gel that cools and treats minor burns.' },
['adrenaline'] = { ['name'] = 'adrenaline', ['label'] = 'Adrenaline Injector', ['weight'] = 0, ['type'] = 'item', ['image'] = 'adrenaline.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Instant stimulant that increases alertness and restores energy in emergencies.' },
['antibiotic'] = { ['name'] = 'antibiotic', ['label'] = 'Antibiotic Pills', ['weight'] = 0, ['type'] = 'item', ['image'] = 'antibiotic.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Used to fight infections and boost immune recovery.' },
['epinephrine'] = { ['name'] = 'epinephrine', ['label'] = 'Epinephrine Shot', ['weight'] = 0, ['type'] = 'item', ['image'] = 'epinephrine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Emergency shot used to treat severe allergic reactions or shock.' },
['self_sedative'] = { ['name'] = 'self_sedative', ['label'] = 'Liquid Sedative', ['weight'] = 0, ['type'] = 'item', ['image'] = 'self_sedative.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Liquid medicine that helps reduce stress and anxiety.' },Füge es ein in ox_inventory/data/items.lua und kopiere die Bilder nach ox_inventory/web/images/. Medical Creator registriert, was beim Benutzen passiert, daher ist kein Export client oder server nötig.
['defib'] = { label = 'Defibrillator', weight = 1000, stack = false, close = true, description = 'Portable defibrillator used to revive unconscious patients.' },
['medikit'] = { label = 'First Aid Kit', weight = 300, stack = true, close = true, description = 'Basic first aid kit with bandages, antiseptic, and painkillers.' },
['sedative'] = { label = 'Sedative Syringe', weight = 50, stack = true, close = true, description = 'Injectable sedative that calms or puts the patient to sleep.' },
['tweezers'] = { label = 'Tweezers', weight = 50, stack = true, close = true, description = 'Tool used to remove bullets or debris from wounds.' },
['icepack'] = { label = 'Ice Pack', weight = 100, stack = true, close = true, description = 'Cold pack to reduce swelling and bruising.' },
['burncream'] = { label = 'Burn Cream', weight = 100, stack = true, close = true, description = 'Medicated cream that prevents infection in burn wounds.' },
['medbag'] = { label = 'Medical Bag', weight = 2000, stack = false, close = true, description = 'Bag used by medics to store medical tools and supplies.' },
['stretcher'] = { label = 'Stretcher', weight = 5000, stack = false, close = true, description = 'Used to transport injured or unconscious players safely.' },
['bandage'] = { label = 'Bandage', weight = 50, stack = true, close = true, description = 'Patches up small wounds and restores some health.' },
['painkiller'] = { label = 'Painkillers', weight = 50, stack = true, close = true, description = 'Pills that temporarily reduce pain and stabilize the patient.' },
['morphine'] = { label = 'Morphine Syringe', weight = 50, stack = true, close = true, description = 'Strong painkiller used in serious injuries to reduce pain.' },
['hemostatic_agent'] = { label = 'Hemostatic Agent', weight = 50, stack = true, close = true, description = 'Stops bleeding instantly. Ideal for deep cuts or gunshot wounds.' },
['burn_gel'] = { label = 'Burn Gel', weight = 100, stack = true, close = true, description = 'Soothing gel that cools and treats minor burns.' },
['adrenaline'] = { label = 'Adrenaline Injector', weight = 50, stack = true, close = true, description = 'Instant stimulant that increases alertness and restores energy in emergencies.' },
['antibiotic'] = { label = 'Antibiotic Pills', weight = 50, stack = true, close = true, description = 'Used to fight infections and boost immune recovery.' },
['epinephrine'] = { label = 'Epinephrine Shot', weight = 50, stack = true, close = true, description = 'Emergency shot used to treat severe allergic reactions or shock.' },
['self_sedative'] = { label = 'Liquid Sedative', weight = 50, stack = true, close = true, description = 'Liquid medicine that helps reduce stress and anxiety.' },Für ein ESX-Inventar, das Items aus der Tabelle items liest:
INSERT IGNORE INTO `items` (`name`, `label`, `weight`) VALUES
('defib', 'Defibrillator', 1),
('medikit', 'First Aid Kit', 1),
('sedative', 'Sedative Syringe', 1),
('tweezers', 'Tweezers', 1),
('icepack', 'Ice Pack', 1),
('burncream', 'Burn Cream', 1),
('medbag', 'Medical Bag', 1),
('stretcher', 'Stretcher', 1),
('bandage', 'Bandage', 1),
('painkiller', 'Painkillers', 1),
('morphine', 'Morphine Syringe', 1),
('hemostatic_agent', 'Hemostatic Agent', 1),
('burn_gel', 'Burn Gel', 1),
('adrenaline', 'Adrenaline Injector', 1),
('antibiotic', 'Antibiotic Pills', 1),
('epinephrine', 'Epinephrine Shot', 1),
('self_sedative', 'Liquid Sedative', 1);Bilder#
Das Theme [img]-Ordner enthält eine PNG pro Item, nach ihm benannt (defib.png, tweezers.png…). Der Verletzungsbericht zeigt die Behandlungs-Items des Sanitäters mit dem Bild aus dem Inventar, das du betreibst, das Kopieren lässt also auch den Behandlungsbildschirm richtig aussehen.
Inventar | Bildordner |
|---|---|
qs-inventory |
|
qb-inventory |
|
ox_inventory |
|
origen_inventory |
|
Sie im Krankenhaus verkaufen#
Jedes Krankenhaus kann einen Apotheken-NPC haben. Sein Bestand und seine Preise werden pro Krankenhaus festgelegt im Abschnitt Shop des Creators; ein neues Krankenhaus startet mit der Liste in Config.CreatorDefaultItems:
medbag 1000 · medikit 250 · painkiller 100 · morphine 45 · hemostatic_agent 60
burn_gel 40 · adrenaline 30 · antibiotic 30 · epinephrine 15 · self_sedative 15 · stretcher 1500Wie sich der Shop öffnet, hängt von deinem Inventar ab — siehe Integrationen.



