Skip to content

Commit ad8ca64

Browse files
committed
Update wiki for version 1.3.0beta5
1 parent c85ebdf commit ad8ca64

File tree

2 files changed

+30
-50
lines changed

2 files changed

+30
-50
lines changed

pages/it-drugs/adjustments/drugs.mdx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,30 @@ With the script, it is also possible to create your own consumable drugs directl
2525
cooldown = 360, -- Cooldown in seconds until you can use this drug again
2626
},
2727
```
28-
2928
<Callout type="info">
3029
The cooldown is added to the normal effect time of the drug, in this case the cooldown is 80 + 360.
3130
</Callout>
3231

32+
<Callout type="warning">
33+
If you use the ox_inventory, please use the following template to add the drugs to your items.lua:
34+
```lua
35+
["item_name"] = {
36+
label = "Item Label",
37+
weight = 20,
38+
stack = true,
39+
close = true,
40+
description = "Item Description",
41+
server = {
42+
export = "it-drugs.item_name"
43+
},
44+
client = {
45+
image = "item_name.png",
46+
}
47+
},
48+
```
49+
**Each `item_name` must be replaced with the actual item name**
50+
</Callout>
51+
3352
<AccordionGroup>
3453
<Accordion title="All possible Drug Effects">
3554
- runningSpeedIncrease

pages/it-drugs/installation.mdx

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ DROP TABLE IF EXISTS `drug_processing`;
130130
</Callout>
131131
Here you will find a series of selected items in different extensions for different inventories, select the option that suits your server, remember to check if your inventory works with this script!
132132

133-
<Tabs items={["esx_inventory", "qb-inventory", "ox_inventory", "m-inventory", "inventory"]}>
133+
<Tabs items={["esx_inventory", "qb-inventory", "ox_inventory", "codem-inventory", "origen_inventory"]}>
134134
<Tabs.Tab>
135135
```sql copy
136136
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
@@ -454,6 +454,9 @@ Here you will find a series of selected items in different extensions for differ
454454
stack = true,
455455
close = true,
456456
description = "Small bag of cocaine",
457+
server = {
458+
export = "it-drugs.cocaine"
459+
},
457460
client = {
458461
image = "cocaine.png",
459462
}
@@ -465,6 +468,9 @@ Here you will find a series of selected items in different extensions for differ
465468
stack = true,
466469
close = true,
467470
description = "Joint",
471+
server = {
472+
export = "it-drugs.joint"
473+
},
468474
client = {
469475
image = "joint.png",
470476
}
@@ -494,58 +500,13 @@ Here you will find a series of selected items in different extensions for differ
494500
```
495501
</Tabs.Tab>
496502
<Tabs.Tab>
497-
```lua
498-
-- First we will start the Database
499-
ensure oxmysql
500-
501-
-- Then we will start the cores, never below
502-
ensure es_extended or qb-core
503-
504-
-- Your inventory system, always on top
505-
ensure [inventory]
506-
507-
Then we start all the dependencies
508-
ensure [dependencies]
509-
510-
-- Run it-drugs here along with its dependencies
511-
ensure [it-drugs]
512-
```
503+
Soon...
513504
</Tabs.Tab>
514505
<Tabs.Tab>
515-
```lua
516-
-- First we will start the Database
517-
ensure oxmysql
518-
519-
-- Then we will start the cores, never below
520-
ensure es_extended or qb-core
521-
522-
-- Your inventory system, always on top
523-
ensure [inventory]
524-
525-
Then we start all the dependencies
526-
ensure [dependencies]
527-
528-
-- Run it-drugs here along with its dependencies
529-
ensure [it-drugs]
530-
```
506+
Soon...
531507
</Tabs.Tab>
532508
<Tabs.Tab>
533-
```lua
534-
-- First we will start the Database
535-
ensure oxmysql
536-
537-
-- Then we will start the cores, never below
538-
ensure es_extended or qb-core
539-
540-
-- Your inventory system, always on top
541-
ensure [inventory]
542-
543-
Then we start all the dependencies
544-
ensure [dependencies]
545-
546-
-- Run it-drugs here along with its dependencies
547-
ensure [it-drugs]
548-
```
509+
Soon...
549510
</Tabs.Tab>
550511
</Tabs>
551512

0 commit comments

Comments
 (0)