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. 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:

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:

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
    }
}

Last updated