Installation
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
- Download from CFX Portal
- Extract to your
resourcesfolder asml_lootprops - Add to
server.cfg:
server.cfg
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_lootpropsLoad 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 settingsml_lootprops_categories: categories shared by several modelsml_lootprops_settings: global settingsml_lootprops_noloot_zones: no-loot zonesml_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 whenml_battlepassruns
Verify
The console prints:
cfg
1[ml_lootprops] [INFO] Database tables verified/created successfully
2[ml_lootprops] [INFO] ML LootProps initializedOpen the admin panel with /mllootprops. Admin permission comes from your framework or ACE.
- Resource does not start: check that
oxmysql,ox_libandml_bridgestart first. /mllootpropsdoes 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
0in the Settings tab.