Page cover image

Array_Advanced_Drugs

Current Version 1.0.1

In need of assistance? We're happy to help you out at Our Discord Server

This resource allows you to finally give your EMS crew access to use drugs while giving your CIV's a nice extra way to enjoy their time.

We made this resource because we've never been able to find a script that allowed EMS to administer drugs to their patiënts, we think this adds an extra dynamic to the RP. We figured that if we're making this, we might as well make it a universal solution, and give CIV's the ability to use the drugs too.

We've added important configuration options. You can restrict the functionality to your users by using identifiers such as a Steam Hex, Ace permission, Discord ID or Discord Role. You can even disable parts of the menu completely.

Features

  • Highly configurable, Easy to configure

  • No obfuscation or Escrow

  • Continuous updates and support

  • Overdosing

  • Dosage-dependant effect wear off

Allow your medics to give drugs to patients (With individual effects):

  • Oxygen

  • Saline

  • Midazolam

  • Epinephrine

  • Ketamine

  • Fentanyl

  • Narcan (To clear any existing drug effects)

Allow civilians to use drugs for themselves (With individual effects):

  • Weed

  • MDMA

  • Cocaine

  • LSA

  • LSD

  • Heroin

  • DMT

  • Water (To clear any existing drug effects)

Restrict the menu based on:

  • Steam ID

  • Ace Permission

  • Discord ID

  • Discord Role (Requires Badger_Discord_API to be installed)

Requirement (Buy it here)

Optional (If you want to restrict it to a discord Role)

Setting it up

  • Extract Array-Advanced_Drugs into your server Resources folder

  • Add "Ensure Array-Advanced_Drugs" into your server.cfg

  • Configure your settings in the config.lua

  • Restart your server

  • (If you want the menu to be whitelisted to a specific discord role you need to have Badger_Discord_API installed)

Configuration

  • Open the Config.lua

Options to configure:

  • Config.command The command you want to use to open the menu. ("drugmenu" by default)

  • Config.SubTitleText Set the subtitle text of the menu ("By Array Development" by default)

  • Config.enableMedicalUse Enable or disable the Medical menu globally.

  • Config.enableRecreationalUse Enable or disable the Recreational menu globally.

  • Config.whitelistMedicalUse If Config.enableMedicalUse is set to true, whitelist it to certain people, or leave it available for everyone. (true to enable whitelist)

  • Config.whitelistRecreationalUse If enableRecreationalUse is set to true, whitelist it to certain people, or leave it available for everyone. (true to enable whitelist)

Config.MedicalUse: (Only applies when Config.restrictMedicalUse is true)

  • steamID The Steam Hex of the person you want to add to the whitelist for the Medical menu. You can retrieve your Steam Hex by looking yourself up on http://www.vacbanned.com/

  • discordID The Discord ID of the person you want to add to the whitelist for the Medical menu. You can retrieve someone's Discord ID by enabling "Developer Mode" on discord (Settings > Advanced > Developer Mode), then right-clicking on a user and clicking Copy ID.

  • acePerm An ace permission that you want to add to the whitelist of the Medical menu. (If you want a certain group to be whitelisted, add the ace onto that group in your server.cfg). For a detailed explanation on ace permissions click here.

  • DiscordRole A Discord Role name that you want to add to the whitelist of the Medical menu. The name needs to match perfectly. (Requires Badger_Discord_API to be installed, leave this blank in the config.lua if you don't have this)

You can add more entries per identifier type (steamID, discordID, etc), as exampled below. You can add as many identifiers as you would like. You can also leave any of the identifiers blank.

Config.RecreationalUse: Works the same as Config.MedicalUse ^^

Config.disableMedicalDrugHealingEffects Specify if you want to disable Oxygen and Saline from healing people.

Config.disableMedicalSelfUse Specify if you want to prevent People from using the Medical menu on themselves (for example to heal themselves)

Example Config.Lua:

Config = {}

-- What do you want the command to be to open the menu?
Config.command = 'drugmenu'

-- Set the text to appear below the menu title.
Config.SubTitleText = "By Array Development"

-- Specify if you want to enable both parts of the menu?
Config.enableMedicalUse = true -- Enable Medical Use
Config.enableRecreationalUse = true -- Enable Recreational Use


-- Specify whether you want to restrict parts of the menu?
Config.whitelistMedicalUse = true -- Restrict Medical Use (Recommended to leave true)
Config.whitelistRecreationalUse = false -- Restrict Recreational Use


-- If Config.whitelistMedicalUse is set to true, who do you want to be able to use the menu?
Config.MedicalUse = {
    steamID =       {"iasm89892899w", "awdawk909k21s", "", "", "", "", "", ""}, 
    discordID =     {"SomeonesDiscordId", "92862829495722", "", "", "", "", "", ""}, 
    acePerm =       {"medic", "firedepartment", "", "", "", "", "", ""}, 
    discordRole =   {"EMS", "Fire Department", "", "", "", "", "", ""} -- Leave empty if you don't have Badger_Discord_API installed!
}

-- If Config.whitelistRecreationalUse is set to true, who do you want to be able to use the menu?
Config.RecreationalUse = {
    steamID =       {"", "", "", "", "", "", "", ""}, 
    discordID =     {"", "", "", "", "", "", "", ""}, 
    acePerm =       {"medic", "", "", "", "", "", "", ""}, 
    discordRole =   {"", "", "", "", "", "", "", ""} -- Leave empty if you don't have Badger_Discord_API installed!
}

-- Disable the healing effects gained from Oxygen and Saline, to prevent people with access to the medical use menu from healing people.
Config.disableMedicalDrugHealingEffects = false

-- Do you want to stop medics from being able to use the medical use menu on themselves. (eg. to prevent them from healing themselves)
Config.disableMedicalSelfUse = false

-- Do you want to enable the chat messages when drug functions are executed.
Config.enableChatMessages = true

-- If Config.enableChatMessages is true, what do you want the title of the message to be?
Config.chatMessagetitle = "Array_Drugs"

Last updated