2025-08-11 17:42:26 -06:00
|
|
|
|
# 🌿 MD-Drugs – Advanced Drug System for FiveM
|
|
|
|
|
|
|
2025-09-08 00:10:20 -07:00
|
|
|
|
A fully customizable, immersive drug system for FiveM servers.
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2023-12-17 01:02:02 +01:00
|
|
|
|
<div align="center">
|
|
|
|
|
|
<a href="https://discord.gg/sAMzrB4DDx">
|
2025-08-11 17:42:26 -06:00
|
|
|
|
<img src="https://i.imgur.com/t65G9Z0.png" width="200" alt="Mustache Scripts Logo">
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
<a href="https://discord.gg/sAMzrB4DDx"><strong>Join Mustache Scripts Discord</strong></a>
|
2023-12-17 01:02:02 +01:00
|
|
|
|
</div>
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
---
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
- **[Samuel's Development](https://fivem.samueldev.shop/ ):** Used their Christmas script global states and prop spawning (with permission).
|
|
|
|
|
|
- **[STACHY225](https://babiczind.tebex.io/category/2103836 ):** Meth network animations.
|
|
|
|
|
|
- **[Bostra](https://discord.gg/5ncbwMNq ):** Free scripts, sanity checks, and those cute mushrooms!
|
2024-11-25 02:07:07 -08:00
|
|
|
|
- **[Feisty]():** Stunning visuals that make everything look amazing.
|
|
|
|
|
|
- **Beta Testers:** Your invaluable feedback made this possible.
|
2025-08-11 17:42:26 -06:00
|
|
|
|
- **[1of1 Servers](https://1of1servers.com/ ):** Top-notch hosting and support. Join their [Discord](https://discord.gg/1of1servers ).
|
|
|
|
|
|
- **[Kamaryn](https://discord.gg/KPRmZqFS ):** For the [installation guide video](https://youtu.be/zvuYnUfrqaA?si=FGJuBO5krZMC14Nd).
|
2024-05-18 14:08:25 -07:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
## 🎬 Preview
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
🎥 **[Watch Full Preview Video](https://www.youtube.com/watch?v=I_x7_oz_SAU)**
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2024-05-02 18:34:49 -07:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
---
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
## 📦 Dependencies
|
2024-07-11 17:52:33 -07:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
| Dependency | Link |
|
|
|
|
|
|
|----------|------|
|
|
|
|
|
|
| `ps_lib` | [GitHub - Project-Sloth/ps_lib](https://github.com/Project-Sloth/ps_lib) |
|
|
|
|
|
|
| `Read` | [Read Docs](https://letters.hookedonphonics.com/us/read-guaranteed-G14.html) |
|
|
|
|
|
|
| Game Build | **2944 or later** required |
|
2023-12-11 15:22:52 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
> ⚠️ Ensure all dependencies are installed and up to date before proceeding.
|
2023-12-11 15:22:52 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
---
|
2023-12-16 23:35:43 -06:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
## 🛠️ Installation
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
### Step 1: Inventory Integration
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
#### For QBCore (`qb-inventory`)
|
|
|
|
|
|
1. Copy items from `md-drugs/items_install/qb-inventory` into `qb-core/shared/items.lua`.
|
|
|
|
|
|
2. Add item images from `md-drugs/items_install/images` to `qb-inventory/html/images`.
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
#### For OX_Inventory
|
|
|
|
|
|
1. Copy items from `md-drugs/items_install/ox_inventory` into `ox_inventory/data/items.lua`.
|
|
|
|
|
|
2. Add item images to `ox_inventory/web/images`.
|
2023-12-07 15:45:48 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
---
|
2024-11-26 16:07:15 -08:00
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
### Step 2: Configure Drug Locations & Recipes
|
|
|
|
|
|
|
|
|
|
|
|
- All **processing locations and recipes** are located in their respective drug type files:
|
2025-09-08 00:10:20 -07:00
|
|
|
|
- `cocaine.lua`,
|
|
|
|
|
|
- `meth.lua`,
|
|
|
|
|
|
- `weed.lua`,
|
|
|
|
|
|
- etc.
|
2025-08-11 17:42:26 -06:00
|
|
|
|
- **Plant spawns** are managed in `server/plantSpawns.lua`.
|
|
|
|
|
|
|
|
|
|
|
|
> ✏️ Modify these files to customize spawn points, yields, and processing times.
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
### STEP 3
|
2024-05-18 14:01:26 -07:00
|
|
|
|
- Head to your emote script search for **uncuff** if it's missing add it
|
2024-10-28 14:11:49 -07:00
|
|
|
|
- if rpemotes do this
|
|
|
|
|
|
- go to client/animationListCustom.lua
|
|
|
|
|
|
- add these to the CustomDP.Emotes = {}
|
|
|
|
|
|
```lua
|
|
|
|
|
|
["uncuff"] = {"mp_arresting","a_uncuff","Uncuff", AnimationOptions = { EmoteLoop = true, EmoteMoving = true } },
|
|
|
|
|
|
["edible"] = { "mp_player_inteat@burger", "mp_player_int_eat_burger", "edible", AnimationOptions = { EmoteLoop = false, EmoteMoving = true }},
|
|
|
|
|
|
```
|
|
|
|
|
|
- Add This to CustomDP.PropEmotes = {}
|
|
|
|
|
|
```lua
|
|
|
|
|
|
["shootup"] = { "rcmpaparazzo1ig_4", "miranda_shooting_up", "Shoot Up", AnimationOptions = {EmoteLoop = true,EmoteMoving = true,Prop = 'prop_syringe_01', PansexualPropBone = 18905,PropPlacement = {0.11, 0.03, 0.0, -124.0, 0.0, 0.0},}}
|
|
|
|
|
|
```
|
|
|
|
|
|
- elseif dpemotes add this to client/AnimationList.lua
|
|
|
|
|
|
- add these to DP.Emotes = {}
|
|
|
|
|
|
```lua
|
|
|
|
|
|
["uncuff"] = {"mp_arresting","a_uncuff","Uncuff", AnimationOptions = { EmoteLoop = true, EmoteMoving = true } },
|
|
|
|
|
|
["edible"] = { "mp_player_inteat@burger", "mp_player_int_eat_burger", "edible", AnimationOptions = { EmoteLoop = false, EmoteMoving = true }},
|
|
|
|
|
|
```
|
|
|
|
|
|
- add these to DP.PropEmotes = {}
|
|
|
|
|
|
```lua
|
|
|
|
|
|
["shootup"] = { "rcmpaparazzo1ig_4", "miranda_shooting_up", "Shoot Up", AnimationOptions = {EmoteLoop = true,EmoteMoving = true,Prop = 'prop_syringe_01', PansexualPropBone = 18905,PropPlacement = {0.11, 0.03, 0.0, -124.0, 0.0, 0.0},}}
|
|
|
|
|
|
```
|
|
|
|
|
|
- elseif scullyemotes then
|
|
|
|
|
|
- add this to emotes.lua
|
|
|
|
|
|
```lua
|
|
|
|
|
|
{
|
|
|
|
|
|
Label = 'Uncuff',
|
|
|
|
|
|
Command = 'uncuff',
|
|
|
|
|
|
Animation = 'a_uncuff',
|
|
|
|
|
|
Dictionary = 'mp_arresting',
|
|
|
|
|
|
Options = {
|
|
|
|
|
|
Flags = {
|
|
|
|
|
|
Loop = true,
|
|
|
|
|
|
Move = true,
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
Label = 'Edibles',
|
|
|
|
|
|
Command = 'edible',
|
|
|
|
|
|
Animation = 'mp_player_int_eat_burger',
|
|
|
|
|
|
Dictionary = 'mp_player_inteat@burger',
|
|
|
|
|
|
Options = {
|
|
|
|
|
|
Flags = {
|
|
|
|
|
|
Loop = true,
|
|
|
|
|
|
Move = true,
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
```
|
|
|
|
|
|
- then in prop emotes do
|
|
|
|
|
|
```lua
|
|
|
|
|
|
{
|
|
|
|
|
|
Label = 'Shoot Up',
|
|
|
|
|
|
Command = 'shootup',
|
|
|
|
|
|
Animation = "miranda_shooting_up",
|
|
|
|
|
|
Dictionary = "rcmpaparazzo1ig_4",
|
|
|
|
|
|
Options = {
|
|
|
|
|
|
Flags = {
|
|
|
|
|
|
Loop = true,
|
|
|
|
|
|
},
|
|
|
|
|
|
Props = {
|
|
|
|
|
|
{
|
|
|
|
|
|
Bone = 18905,
|
|
|
|
|
|
Name = 'prop_syringe_01',
|
|
|
|
|
|
Placement = {
|
|
|
|
|
|
vector3(0.11, 0.03, 0.0),
|
|
|
|
|
|
vector3( -124.0, 0.0, 0.0),
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2024-05-02 18:34:49 -07:00
|
|
|
|
},
|
|
|
|
|
|
},
|
2024-10-28 14:11:49 -07:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-11 17:42:26 -06:00
|
|
|
|
### STEP 4 (IF QBCore)
|
2024-10-28 14:11:49 -07:00
|
|
|
|
- check `qb-smallresources/config.lua` and if this exists, delete it
|
|
|
|
|
|
- look for this code
|
|
|
|
|
|
```lua
|
|
|
|
|
|
[2] = { --Coke Processing Enter/Exit
|
|
|
|
|
|
[1] = {
|
|
|
|
|
|
poly = { coords = vector3(909.49, -1589.22, 30.51), heading = 92.24, length = 2, width = 2 },
|
|
|
|
|
|
allowVeh = false,
|
|
|
|
|
|
label = '[E] Enter Coke Processing'
|
|
|
|
|
|
},
|
|
|
|
|
|
[2] = {
|
|
|
|
|
|
poly = { coords = vector3(1088.81, -3187.57, -38.99), heading = 181.7, length = 2, width = 2 },
|
|
|
|
|
|
allowVeh = false,
|
|
|
|
|
|
label = '[E] Leave'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
```
|
2024-05-02 18:34:49 -07:00
|
|
|
|
|
2025-09-08 00:10:20 -07:00
|
|
|
|
### STEP 5
|
2024-10-28 14:11:49 -07:00
|
|
|
|
- Run SQL
|
2025-08-11 17:42:26 -06:00
|
|
|
|
- if you dont know how, click this image below
|
|
|
|
|
|
- [](https://www.youtube.com/watch?v=8QpFOluK_xo)
|