⚙️・Adjustments
💊・Drugs

💊・Drugs

With the script, it is also possible to create your own consumable drugs directly. For these to be active in the game, Config.EnableDrugs must be set to true.

Config.Drugs

['joint'] = { -- item that can be used in game
    label = 'Joint',
    animation = 'smoke', -- Animations: blunt, sniff, pill
    time = 80, -- Time in seconds of the Effects
    effects = { -- list of effects the drug have
        'intenseEffect',
        'healthRegen',
        'moreStrength',
        'drunkWalk'
    },
    cooldown = 360, -- Cooldown in seconds until you can use this drug again
},

The cooldown is added to the normal effect time of the drug, in this case the cooldown is 80 + 360.

If you use the ox_inventory, please use the following template to add the drugs to your items.lua:

["item_name"] = {
		label = "Item Label",
		weight = 20,
		stack = true,
		close = true,
		description = "Item Description",
		server = {
			export = "it-drugs.item_name"
		},
		client = {
			image = "item_name.png",
		}
	},

Each item_name must be replaced with the actual item name

  • runningSpeedIncrease
  • infinateStamina
  • moreStrength
  • healthRegen
  • foodRegen
  • drunkWalk
  • psycoWalk
  • outOfBody
  • cameraShake
  • fogEffect
  • confusionEffect
  • whiteoutEffect
  • intenseEffect
  • focusEffect
  • superJump
  • swimming

['item_name'] = { -- item that can be used in game
    label = 'Drug Label',
    animation = 'smoke', -- Animations: blunt, sniff, pill
    time = 80, -- Time in seconds of the Effects
    effects = { -- list of effects the drug have
        'intenseEffect',
        'healthRegen',
        'moreStrength',
        'drunkWalk',
    },
    cooldown = 360, -- Cooldown in seconds until you can use this drug again
},