OSP Development
Ambulance Job
Ambulance Job
  • 👋Welcome to OSP Development
  • Overview
    • 💡Showcase
  • In-Game Use
    • 📪Overview
    • 🛏️Stretcher
    • 📺ICU Screens
    • 🎒Medical Equipment
    • 🩻Xray
    • Skelly
  • Developer usage
    • 📞Dispatch Integration
    • 👨‍💻Developer Usage
    • 💀isDead function
    • 💉Custom Medication
    • FFA/Paintball Integration
    • Inventory Items
    • society/banking exports
    • Custom Deathscreen
  • FAQ
    • ❌Issues
    • ❓General
Powered by GitBook
On this page
  1. Developer usage

Custom Medication

How to add custom medication directly from the config.

PreviousisDead functionNextFFA/Paintball Integration

Last updated 3 months ago

If you wish to add more infusions, you can simply copy a infusion table and reconfigure it to fit your new infusion. You can for example copy the blood250ml infusion table, like below, and reconfigure all the variables to your fit.

All the functions you see above inside the config table is pretty self explanatory, as the onUse() function will be triggered when the medication is used, the onTick() function will be triggered every second until the infusion has run out. And the onFinish() function is triggered when the infusion/medication has fully been depleted.

If you'd like to add any other medication types, it's very important to copy the exact table structure for each type. For example if a config has the type ='bandage', you should not use the infusion config structure, as it will not work.

Bandages will for example only work with the following config structure.

💉