Skip to content

Commit

Permalink
Update common-errors.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRoundJonU committed Dec 3, 2024
1 parent 089c872 commit 87cf216
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions pages/it-drugs/common-errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: it-drugs - Common Errors
description: Common errors and their solutions
---

import { Callout } from '@components/Callout'
import { Steps } from 'nextra/components'
import { Steps, Cards, Card } from 'nextra/components'
import ExternLink from '@components/ExternLink'
import { IconBrandGithub, IconBrandDiscord, IconCode, IconTag } from '@tabler/icons-react';

# Common Errors
Here you will find common errors and their solutions. If you have any further questions, please feel free to ask in the [Discord](https://discord.it-scripts.com).
Expand All @@ -24,10 +24,34 @@ If you get this error you either don't have [ox_lib](https://github.com/overexte
Make sure to start the ox_lib script before the it-drugs script.

## Database Errors
```ansi
 Error: it-drugs was unable to execute query!
```
If you get this error, it means that the script was unable to execute a query on the database.
This can have multiple reasons, but the most commons are:
- You still running version 1.2.4 of the script. [Update now](https://docs.it-scripts.com/it-drugs/update#v124-to-13x)
- You updated the script from 1.2.4 to 1.3.x and didn't update the database. To fix this you can run the following SQL query:
```sql copy
-- Delete the drug_plants table
DROP TABLE IF EXISTS drug_plants;
-- Delete the drug_processing table
DROP TABLE IF EXISTS drug_processing;
```

---
### Any other databse error
If you get any other database error, please make sure that you are using the latest version of the script.

<Cards>
<Card icon={<IconBrandGithub />} title="GitHub" href="https://github.com/it-scripts/it-drugs" />
<Card icon={<IconTag />} title="Releases" href="https://github.com/it-scripts/it-drugs/releases" />
</Cards>

## Animation Error
If you are using the latest version of the script, please let us know in the [Discord](https://discord.it-scripts.com).


## Animation Error
### Missing Animation
```ansi
 attempt to index a nil value (field 'animation')
```
Expand Down

0 comments on commit 87cf216

Please sign in to comment.