Installation

2 min readUpdated 2 weeks ago

Overview

ML Loot Props makes world objects, dead NPCs and dead animals lootable by model. Props, loot tables, hunting rules and no-loot zones are built from an in-game admin panel and saved in the database.

Quick Start

  1. Download from CFX Portal
  2. Extract to your resources folder as ml_lootprops
  3. Add to server.cfg:
server.cfg
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_lootprops
Load Order

ml_lootprops must start AFTER ml_bridge. Optional resources such as ML Inventory, ml_skills and ml_random_cloth start before it.

Database

Tables are created on first start:

  • ml_lootprops_configs: lootable models and their settings
  • ml_lootprops_categories: categories shared by several models
  • ml_lootprops_settings: global settings
  • ml_lootprops_noloot_zones: no-loot zones
  • ml_lootprops_bp_runs, ml_lootprops_bp_outbox, ml_lootprops_bp_cache, ml_lootprops_bp_sources, ml_lootprops_bp_guard: battlepass progress queue, created by the ML Bridge module and only filled when ml_battlepass runs

Verify

The console prints:

cfg
1[ml_lootprops] [INFO] Database tables verified/created successfully
2[ml_lootprops] [INFO] ML LootProps initialized

Open the admin panel with /mllootprops. Admin permission comes from your framework or ACE.

  • Resource does not start: check that oxmysql, ox_lib and ml_bridge start first.
  • /mllootprops does nothing: the player needs admin permission.
  • An object cannot be looted: add its model in the admin panel and give it loot. The detector fills the model in when you aim at the object.
  • A dead ped shows no option: only configured ped and animal models are lootable, and player peds never are.
  • Nothing to loot right after a restart: the startup delay is running. Wait, or set both values to 0 in the Settings tab.