❓・Common Errors

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 (opens in a new tab).

This page is still under construction. If you have any errors that are not listed here, please let us know in the Discord (opens in a new tab).

General Errors

 attempt to index a nil value (global 'lib')

If you get this error you either don't have ox_lib (opens in a new tab) installed on your server or you start it after the it-drugs script. Make sure to start the ox_lib script before the it-drugs script.

Database Errors

Animation Error

 attempt to index a nil value (field 'animation')

If you get this error that means you are using 1.2.4 of the script. We would recommend updating to the latest version of the script. This will fix the error.

Loading...

However, if you want to fix it manually, you can do the following:

Open the config.lua file.

Search for Config.ProcessingTables.

Add the following lines to every recipe in every processing tables:

animation = {
    dict = 'anim@gangops@facility@servers@bodysearch@',
    anim = 'player_search',
},