Cada herramienta y medicamento de Medical Creator es un ítem de inventario normal: el desfibrilador con el que reanima un médico, las pinzas que tratan el sangrado, los analgésicos que un jugador toma por su cuenta. Regístralos una vez en tu inventario y copia las imágenes de la carpeta [img] a su carpeta de imágenes.
Qué hace cada ítem#
Ítem | Lo usa | Qué hace |
|---|---|---|
| EMS | Necesario para la reanimación con RCP. Nunca se consume. |
| EMS / cualquiera | La acción Heal. Curación completa cuando un médico lo usa en un paciente, una curación pequeña en ti mismo. Se consume. |
| EMS | La acción Sedate: el paciente queda en ragdoll durante 8 minutos. Se consume. |
| EMS | Trata el sangrado de una parte del cuerpo desde el informe de lesiones. |
| EMS | Trata los moratones. |
| EMS | Trata las quemaduras. |
| EMS | Una bolsa que dejas en la escena; los médicos sacan de ella herramientas de tratamiento, un desfibrilador, un medikit o un sedante. |
| EMS | Genera una camilla en cualquier lugar, sin ambulancia. |
| Cualquiera | Cura el 20% de la salud que falta en 7 segundos. |
| Cualquiera | Medicamentos con duración y efectos secundarios. Uso → Medicamentos enumera cada uno. |
Los nombres de los ítems se definen en
config/main.lua(Config.AmbulanceItems,Config.TreatmentItems,Config.MedicalSystem,Config.BandageItem) yconfig/stretcher.lua. Si renombras uno, hazlo ahí y en tu inventario a la vez.bandageya viene con la mayoría de inventarios: omítelo si el tuyo lo tiene.
Añadir los ítems#
Pega en qs-inventory/shared/items.lua o qb-core/shared/items.lua y copia las imágenes a qs-inventory/web/dist/images/ o qb-inventory/html/images/. Los servidores Qbox suelen usar ox_inventory — usa esa pestaña.
['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.' },Pega en ox_inventory/data/items.lua y copia las imágenes a ox_inventory/web/images/. Medical Creator registra lo que ocurre al usarlos, así que no hace falta ningún export client ni server.
['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.' },Para un inventario de ESX que lee los ítems de la tabla items:
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);Imágenes#
La carpeta [img] contiene un PNG por ítem, con su nombre (defib.png, tweezers.png…). El informe de lesiones muestra los ítems de tratamiento del médico con la imagen del inventario que usas, así que copiarlas también hace que la pantalla de tratamiento se vea bien.
Inventario | Carpeta de imágenes |
|---|---|
qs-inventory |
|
qb-inventory |
|
ox_inventory |
|
origen_inventory |
|
Venderlos en el hospital#
Cada hospital puede tener un NPC de farmacia. Su stock y sus precios se definen por hospital en la sección Shop del creador; un hospital nuevo empieza con la lista de 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 1500Cómo se abre la tienda depende de tu inventario — consulta Integraciones.



