OrigenNetwork
Docs

F.A.Q · origen_ilegalv2


Installation & setup

The resource starts but the database tables are not created.

Make sure oxmysql is listed in server.cfg before origen_ilegalv2 and is fully started. The auto-create routine runs inside MySQL.ready() — if oxmysql hasn't connected yet, the routine is skipped.


I see [origen_ilegalv2] * Framework: nil in the console.

No supported framework was detected. Verify that one of qbx_core, qb-core, or es_extended is started before origen_ilegalv2.


Players can't open the gang panel with the CAD item.

  1. Confirm the item name in Config.Gang.CAD.ItemName matches the item registered in your inventory exactly.
  2. The item must be in the player's inventory — the first CAD is given automatically on gang creation. Subsequent units are purchased from the gang dashboard.

Gangs

How do players create a gang?

Run /creategang in chat. The creation wizard opens in the NUI. The player must have a can_create_gang = 1 permission row in the origen_gang_permissions table, or you can grant it via the admin panel.


Can I change rank permissions after a gang is created?

Yes — any rank with the manage_ranks permission can edit ranks from the gang panel → Ranks tab. Changes take effect immediately without a restart.


The gang bank is not working / missing.

Set Config.Gang.Bank.Enable = true and restart the resource. The bank tab only appears when this flag is enabled.


Labs

Players teleport into the wrong lab interior.

Lab interior coordinates are resolved from Config.LabTypes at runtime. Each row in origen_gang_labs stores a lab_type key — make sure it matches a key in Config.LabTypes exactly (case-sensitive: weed, coke, meth, bunker, counterfeit).


Players from different gangs are seeing each other inside a lab.

Labs use routing buckets (Config.Labs.Bucket.Base + lab_id). Verify that no other resource is overriding the routing bucket for those player sources.


Drug sales

No customers are spawning.

Check these settings in config/drug_sales.lua:

  • Config.DrugSales.Enable = true
  • Config.DrugSales.CopRequired — if set to a value above 0, the required number of police must be online.
  • The selling player must not be inside a blacklisted zone.
  • At least one entry must be defined in DrugList (or in the origen_drug_sales_custom DB table).

Drug sales are blocked near a custom building.

Add a new entry to Config.DrugSales.BlacklistedZones with the coordinates and radius of your building.


Territories

The territory never changes ownership even after reaching 100% reputation.

Check Config.Territories.Capture.MinRepToCapture. The gang must hold at least that amount of reputation to become the controller. Also verify that StabilizationHours has elapsed since the last ownership change.


Passive income is not being distributed.

Confirm Config.Territories.Rewards.Enable = true. Income is paid every Rewards.Interval minutes — check the server console for any errors on the reward thread.


Exports & integration

AddOrganizationTask returns false with a WARN message.

The OrgPanels module initializes after the resource is fully loaded. Call the export inside AddEventHandler('onResourceStart', function(res) if res == 'origen_ilegalv2' then ... end end) to guarantee it runs after the module is ready.


IsGangFeatureUnlocked always returns false.

Make sure the upgrade was registered via AddOrganizationUpgrade with an effect = { feature = 'your:key' } field, and that the gang has it unlocked via UnlockGangUpgrade.