[ESX/QBCore] Loot Areas "search props for loot"

QBCore/ESX loot areas

Description

  • Loot Areas script allows players to search props (e.g., car wrecks, food props) for lootable items. The system supports:

  • Interaction with props using target systems like qb-target or ox_target.

  • Looting items one by one or all at once.

  • cooldown system for looted props.

  • Compatibility with both QBCore and ESX frameworks.

Features

  • Players can loot props for items.
  • Loot items are synced across all players.
  • Props enter a cooldown after being fully looted.
  • Configurable item types, prop categories, and loot chances.

NOTE

  • This loot system will not work if you dont have qb-target or ox_target
  • make sure qb-target and ox_target is installed correctly on your server.

Dependencies

For QBCore

  • qb-target or ox_target
  • qb-menu or ox_lib
  • qb-inventory or ox_inventory “other inventories may work!”

For ESX

  • ox_target
  • ox_inventory “other inventories may work!”
  • ox_lib

Config

Config = {}

-- Framework
Config.Framework = 'QBCore' -- Options: 'QBCore', 'ESX'
Config.CoreGetCoreObject = {
    QBCore = 'qb-core', -- Default core name for QBCore
    ESX = 'es_extended' -- Default core name for ESX
    --NOTE EVEN IF YOU USE ESX DONT REMOVE QBCORE 'SAME FOR QBCORE'
}

-- Target and Menu Systems
Config.MenuSystem = "ox_lib" -- Options: 'qb-menu', 'ox_lib'
Config.TargetSystem = "qb-target" -- Options: 'qb-target', 'ox_target'

-- Loot Cooldown (in milliseconds)
Config.LootCooldown = 300000 

-- Loot Types
Config.Types = {
    -- change the items with ur items
    ['scrap'] = { 'plastic', 'metalscrap', 'copper', 'iron','aluminum','steel','rubber','glass' },
    ['food'] = { 'water_bottle','marshy-aero','marshy-beanz' ,'marshy-pot-noodle','coffee','whiskey','beer'},
    ['ammo'] = { 'pistol_ammo', 'rifle_ammo','smg_ammo' ,'shotgun_ammo'},
    ['weapons'] = { 'weapon_pistol', 'weapon_bat' , 'weapon_bottle','weapon_flashlight','weapon_switchblade'},

}

-- Loot Categories and Props
Config.Categories = {
    ['Cars'] = {
        { prop = 'prop_rub_carwreck_2', type = 'scrap', amount = 3, chance = 100},
        { prop = 'prop_rub_carwreck_3', type = 'scrap', amount = 3, chance = 100},
        { prop = 'prop_rub_carwreck_5', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_7', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_8', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_9', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_10', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_11', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_12', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_13', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_14', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_15', type = 'scrap', amount = 3, chance = 100 },
        { prop = 'prop_rub_carwreck_16', type = 'scrap', amount = 3, chance = 100 }
    },
    ['Food'] = {
        { prop = 'prop_food_cb_burg02', type = 'food', amount = 2, chance = 100 },
        { prop = 'v_ret_fh_noodle', type = 'food', amount = 3, chance = 100 },
        { prop = 'prop_food_bs_burg3', type = 'food', amount = 2, chance = 100 },
        { prop = 'v_ret_247_swtcorn2', type = 'food', amount = 3, chance = 100 },
        { prop = 'v_ret_ml_sweet4', type = 'food', amount = 2, chance = 100 },
        { prop = 'v_ret_ml_sweet3', type = 'food', amount = 3, chance = 100 },
        { prop = 'prop_feed_sack_02', type = 'food', amount = 2, chance = 100 },
        { prop = 'v_ind_cf_wheat', type = 'food', amount = 3, chance = 100 },
        { prop = 'v_ret_ml_sweetego', type = 'food', amount = 2, chance = 100 },
    },
    ['ammo'] = {
        { prop = 'prop_box_ammo07b', type = 'ammo', amount = 2, chance = 100 },
        { prop = 'prop_box_guncase_01a', type = 'ammo', amount = 1, chance = 100 },
        { prop = 'prop_ld_ammo_pack_02', type = 'ammo', amount = 2, chance = 100 },
        { prop = 'v_ret_gc_ammo5', type = 'ammo', amount = 1, chance = 100 },
    },
    ['weapons'] = {
        { prop = 'h4_prop_h4_box_ammo_02a', type = 'weapons', amount = 1, chance = 100 },
    },
}

preview

tebex

buy me

other scripts
Standalone|AdvancedZombieSystem
Standalone|ZombieSystem
Standalone|VehicleSpawner
standalone|SurvivalHUD
QBCore|RobberyCreator
QBCore|SafeZone
QBCore|Shop
QBCore|WeatherSync
QBCore|PhoneStoreRobbery
QBCore|CamperHousing
QBCore|LootBags
ESX|LootBags
ESX/QBCore|InGameMusic
ESX/QBCore|RadiationZones
ESX/QBCore|CraftingVehicles

Support:
you can join my discord for any support ! Sinor System

Code is accessible Config
Subscription-based No
Lines (approximately) 300+
Requirements QBCore/ESX
Support Yes
1 Like

Please provide this value.

1 Like

Done :heart:

300 lines of code for 12€, what a bargain!

1 Like

its 10£ but yeah true

1 Like