Skip to content

Core-Forge-5/core-consumables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Core-Consumables

A lightweight, config-driven item effects system for FiveM. Add drugs, food, and drinks with unique animations, props, and effects in minutes. No scripting required — edit the config and restart.

Part of the Core-Forge ecosystem. If you want the full drug pipeline with labs, precursors, street economy, and rep — check out Core-Forge Drug Empire.

Table of Contents


Features

  • Add drugs, food, and drinks with configurable effects per item
  • Health, armor, stamina, stress, and visual effects supported
  • Full drug effect system — ecstasy, weed, alcohol, and more included out of the box
  • Evidence system integration — widepupils, weedsmell, and other status flags
  • Props and animations per item — right or left hand, fully configurable offsets
  • Items that shouldn't be removed on use can stay in inventory (configurable)
  • Lightweight — no bloat, minimal server impact
  • QBCore | ESX | QBox compatible

Requirements


Installation

  1. Place the core-consumables folder in your server's resources directory

  2. Add to your server.cfg

ensure core-consumables
  1. Import the SQL file from the install/ folder into your database

  2. Configure items to match your server — see Configuration

  3. Restart your server or run refresh then ensure core-consumables in console


Configuration

All items are defined in config/. Adding a new item takes under a minute.

Item Example

drug_moonshine = {
    time = 3000,                                                  -- Use time in ms
    effect = 'moonshine',                                         -- Effect function name
    progressbartext = "Drinking ",                                -- Progress bar label
    remove = true,                                                -- Remove item on use
    add = { stress = -10, buffs = {} },                           -- Stat changes
    anim = {
        dict = 'amb@world_human_drinking@coffee@male@idle_a',
        clip = 'idle_c'
    },
    prop = {
        model = 'prop_beer_bottle',
        bone = 57005,                                             -- Right hand
        pos = vector3(0.14, -0.05, -0.05),
        rot = vector3(-80.0, 0.0, 0.0)
    }
},

Stat Keys

Key Effect
stress Adjusts stress level (negative = reduces)
health Adjusts player health
armor Adjusts armor value
stamina Restores stamina
buffs Custom buff table for extended effects

Drug Effects

Effects are defined as named functions and referenced by the effect key in config. Included out of the box:

  • Ecstasy — screen effects, stamina restore, random flash, ragdoll on run
  • Weed — stoned_monkeys timecycle filter, weedsmell evidence status
  • Alcohol/Moonshine — configurable stress reduction, prop animation
  • More included — easy to add your own by defining a new effect function and referencing it in config

Evidence integration fires automatically when a drug is used:

TriggerEvent('evidence:client:SetStatus', 'widepupils', 200)
TriggerEvent('evidence:client:SetStatus', 'weedsmell', 200)

Support

About

Core-Consumeables

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors