๐Ÿ”งInstallation

Follow these steps to ensure the script works correctly.

1. Download

Grab the resource from your customer panel and extract it into your resources folder.

cd resources/
unzip origen_ilegalv2.zip -d [origen]/origen_ilegalv2

2. Import the database

The schema is located at database.sql in the root of the resource.

mysql -u your_user -p your_database < [origen]/origen_ilegalv2/database.sql

Open HeidiSQL โ†’ connect to your database โ†’ File โ†’ Load SQL file โ†’ select database.sql โ†’ press F9 to execute.

The resource also auto-verifies the schema on every boot using `server/classes/database.lua`. If a table or column is missing it will be created automatically. The `database.sql` file is the source of truth โ€” keep it in sync if you change the data model.

3. Configure

Open config/general.lua and set your language:

Config.Debug    = false
Config.Language = 'en'  -- 'en' | 'es'

Optionally open config_sv.lua for server-side settings such as Fivemanage logging tokens.

`config_sv.lua` contains sensitive tokens. Do **not** expose its contents in logs or public repositories.

4. Register the ilegal_cad item

Add the CAD item to your inventory resource item list:

The first CAD is delivered automatically when a gang is created. Additional units are purchased from the gang dashboard.

5. Add to server.cfg

Start your framework (es_extended, qb-core, or qbx_core), your inventory (if you use one of the supported bridges), and any other resources origen_ilegalv2 relies on for auto-detection โ€” target, dispatch, voice, etc. โ€” before origen_ilegalv2. Detection only sees providers that are already running. See Dependencies for the full matrix.

Load order matters. `oxmysql` and `ox_lib` must start **before** `origen_ilegalv2`, and your framework / inventory / bridged resources must start **before** `origen_ilegalv2` so auto-detection can resolve them.

6. Verify

Start the server and check the console. On first boot you should see:

All detected dependencies print with their active provider name. Any โœ— indicates a missing or non-started resource.

circle-exclamation

Last updated