[ESX/QBCore] sinor-lootpeds

QBCore/ESX loot/hunt

Description

-this system works with zombies servers and normal servers as well jest change the items in the config.lua and mike sure when changing the items to add new items icons to sinor-lootpeds/img/.png.

  • The Loot Peds script allows players to loot items from dead NPCs or animals. The system supports
  • Configurable loot categories for humans, animals, and special NPCs.
  • Interaction using target systems like qb-target or ox_target.
  • Compatibility with both QBCore and ESX frameworks.

Features

  • Players can loot dead NPCs or animals.
  • Lootable categories include humans, animals, and special NPCs.
  • Configurable loot items, chances, and quantities.
  • Loot states are synced across all players.

NOTE

  • This loot system will not work if you dont have qb-target for qbcore and ox_target for esx
  • 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

For ESX

  • ox_target
  • ox_inventory
  • ox_lib

Config

Config = {}

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'
}
Config.InventorySystem = "qb-inventory" -- Options: 'qb-inventory', 'ox_inventory'
Config.MenuSystem = "ox_lib" -- Options: 'qb-menu', 'ox_lib'
Config.TargetSystem = "qb-target" -- Options: 'qb-target', 'ox_target'

Config.UseTarget = true
Config.DeletePedsWhenLooted = false
Config.EnableOnStart = true
Config.Commands = {
    toggle = 'toggleLooting'
}


Config.PedModels = {
    "u_m_o_tramp_01",
    "u_m_y_abner",
    "u_m_y_antonb",
    "u_m_y_babyd",
    "u_m_y_baygor",
-- most peds are included
}

Config.AnimalPedModels = {
    "a_c_deer",
    "a_c_cow",
    "a_c_boar",
    "a_c_mtlion",
}
Config.specialPedModels = {
    "a_m_m_farmer_01",
    "a_m_m_fatlatin_01",
    "a_m_m_og_boss_01"
    -- add ur special peds here
}

Config.Items = {
    ['Basic'] = {
        { name = 'zombie_brain', label = 'Brain', amount = 1, chance = 100 },
        { name = 'zombie_heart', label = 'Heart', amount = 1, chance = 100 },
        { name = 'zombie_lungs', label = 'Lungs', amount = 2, chance = 100 },
        { name = 'zombie_arm', label = 'Arm', amount = 2, chance = 100 },
        { name = 'zombie_foot', label = 'Foot', amount = 2, chance = 100 }
    },
    ['Animal'] = {
        { name = 'meat', label = 'Meat', amount = 2, chance = 100 },
        { name = 'skin', label = 'Skin', amount = 1, chance = 100 }
    },
    ['special'] = {-- i used qb-core items change them if u are using esx
        { name = 'weapon_pistol', label = 'pistol', amount = 1, chance = 100 },
        { name = 'pistol_ammo', label = 'ammo pistol', amount = 3, chance = 100 },
        { name = 'weapon_battleaxe', label = 'battle axe', amount = 1, chance = 100 },
        { name = 'weapon_bat', label = 'bat', amount = 1, chance = 100 }
    }
}

tebex

buy me

preview

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

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

Code is accessible no
Subscription-based no
Lines (approximately) 380
Requirements ESX/QBCore
Support Yes

Why haven’t you posted how many lines of code it is?

My guess is around 100. Shouldn’t be paid at all

1 Like

130 server side 220 client side hope that helps