</>liveDevDocs
ScriptlerliveIllegalEnglish

Installation

Step-by-step liveIllegal installation — QBCore and ESX.

🌐 Türkçe · Kurulum rehberi

Order matters

Always start dependencies before liveIllegal. A missing dependency means the script won't run.

1. Place the files

Copy the resource into your server (e.g. resources/[LV]/liveIllegal). If you got both builds, install only the folder for your framework ([QBCore]… or [ESX]…).

2. Database

Run the full sql/install.sql once.

Check
SHOW TABLES LIKE 'live_illegal_cannabis_plants';

Legacy cannabis_*.sql migration files are not needed; install.sql is enough for a fresh install.

3. Add the items

Item names must match the config exactly. Full list: Items.

-- Add to qb-core/shared/items.lua
-- Ready snippet: sql/qb_items_snippet.lua
-- cannabis_seed must be "useable" (seed usage).
-- Images: qb-inventory/html/images/

4. server.cfg

ensure oxmysql
ensure qb-core
ensure qb-target
ensure qb-inventory
ensure livePauseMenu
ensure liveIllegal

5. Basic settings

In config/02_general.lua, at least review:

config/02_general.lua
Config.Illegal.Locale = 'en'           -- 'tr' or 'en'
Config.Illegal.Discord.webhook = ''    -- webhook URL if you want Discord logs

For police alerts, NPC zones, prices and timers see Configuration.

6. Admin permissions (ACE)

server.cfg
add_ace group.admin liveillegal.growweed allow
add_ace group.admin liveillegal.resetnpcmeta allow

Full command list: Commands & Exports.

7. Install checklist

  • install.sql ran (live_illegal_cannabis_plants table exists)
  • All items added to your inventory (cannabis_seed useable)
  • Dependencies ensured before liveIllegal
  • Config.Illegal.Locale set
  • (Optional) Discord webhook + police script mapped
  • Admin ACE permissions added
  • Test: plant → maintain → harvest → sell to NPC

On this page