[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

QBCore/ESX|BaseBuilding
Standalone|AdvancedZombieSystem
Standalone|SurvivalHUD
Standalone|VehicleSpawne
QBCore/ESX|UsableItems
QBCore/ESX|VehicleCrafting
QBCore/ESX|Recycler
QBCore/ESX|Gather
QBCore|RobberyCreator
Standalone|SafeZone
QBCore/ESX|LootAreas
QBCore/ESX|LootPeds
QBCore/ESX|RadiationZones
Standalone|ZombieSystem
QBCore|Shop
QBCore|WeatherSync
QBCore|PhoneStoreRobbery
QBCore/ESX|InGameMusic
QBCore/ESX|CamperHousing
standalone|SurvivalHUD
QBCore/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

change logs 1.3.0

  • Added progress with animations when looting peds.,

  • Configurable duration via Config.ProgressTime .,

  • Player movement/combat restricted during looting .,

  • All UI text moved to Config.Translations Supports multilingual setups.,

  • change anim to Standardized looting animation with no bugs.,

  • Improvements in Target Interaction and Menu System.,

  • Fixed edge cases where entities could be looted multiple times.

change logs 1.4.0 :

  • Added new random item generation.,
  • Expanded translation options.,
  • The menu now displays the number of items the player will receive.

change logs 1.4.2 :

  • Implemented random item generation.,
  • Expanded translation options.,
  • Added a new configuration for server owners to customize the server.,
  • The menu now displays the item quantity a player will receive.

chenge logs 1.4.5 :

  • the script now support sinor menu