# Common Questions & Problems

## ERROR: "Failed to load model x"

This means the model you're trying to use comes from a newer GTA V game build.

**Fix options:**

1. [**Update your game build**](https://forum.cfx.re/t/tutorial-forcing-gamebuilds-on-fivem/4784977)**.** We have been using build 3258.
2. **Change the model name** in the config to one available in your current game build.

## Cursor stuck in top right corner

This issue is caused by a client-side anticheat or other 3rd party script incorrectly interfering with our script. Modify or remove the script that is causing this behavior.

## Adding job restriction / other modifications (e.g. only police can destroy)

The `client/main_editable.lua` file contains multiple functions that allow you to customize or restrict certain actions to your preference. Feel free to explore and modify it to suit your needs.

## Changing plant growth time

Growth time for each stage can be adjusted in `Config.Plants -> stages -> time`. The time value of the **last stage** defines how long the plant will stay alive before it dies if not harvested.

## Changing money type (e.g. from cash to black money)

You can change the type of money used when selling drugs/using the shop by editing the config.

* Open the config and look for `moneyType`
* If money is an item on your server, go to `server/main_editable.lua` and update the `SoldDrugs` function like this:

```lua
function SoldDrugs(xPlayer, drugName, amount, price)
    AddItem(xPlayer, Config.Selling.moneyType, price)
end
```

## Disabling drug selling

To disable drug sales, open the config and set `Config.Selling.items` to an empty table.

* Example:

```lua
Config.Selling = {
    interactionDistance = 2.5, -- Distance at which player can interact with NPCs to sell drugs
    minPolice = 0, -- Minimum number of police officers required to sell drugs
    moneyType = 'money',
    props = {
        drug = 'prop_meth_bag_01',
        money = 'prop_anim_cash_note',
    },
    policeChance = {
        success = 0,
        failure = 50,
    },
    items = {}, -- Set this to empty to disable drug salling
    blip = {
        color = 1,
        scale = 1.0,
        sprite = 140,
        playSound = true
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tk-scripts.gitbook.io/docs/tk_drugs/common-questions-and-problems.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
