Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

Crime & Gang Mods

Loot Body script FiveM resource preview

Loot Body script

Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Dependencies
esx_menu_defaultesx_menu_dialog
File size
4.5 kB
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

Loot Body lets members of gang jobs on an ESX server search a dead player and take their cash, black money, items and weapons. Useful for gang and PvP roleplay where dying should cost something.

Features

  • Gang jobs only: vagos, grove, gang, dismay, mafia, cartel, bishops, biker and ballas (list in client/main.lua)
  • Press E within 2 m of a dead player to start a 5-second search animation
  • A menu lists the target's cash, black money, inventory items and weapons with ammo
  • Pick an entry and choose steal or return; for items you enter the amount
  • The server checks that the target has enough of the item or money and that the looter stays within the item limit
  • Both players get a notification of what was taken
  • Locale file included (English, locales/en.lua), texts can be translated

Requirements

  • ESX, older builds: the script loads ESX through the esx:getSharedObject event and uses item limits and xPlayer.loadout
  • esx_menu_default and esx_menu_dialog for the menus

Installation

  • Copy the if_dead folder into your resources.
  • Add ensure if_dead to your server.cfg after es_extended.
  • Adjust the job list in client/main.lua to your gang job names.

Notes

  • The server event that moves the loot does not check that the target is dead or nearby or that the looter has a gang job, and weapons are handed out without checking that the target owns them; review server/main.lua before using it on a live server.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • FiveM Torture System
    • ESX
    • QBCore
    Not for your framework

    FiveM Torture System

    Danzo Scripts

    $24.00$16.80
  • Boss Menu
    • ESX
    • QBCore
    Not for your framework

    Advanced Boss Menu

    Eyes Store

    $5.00$3.50
  • Drugs Creator FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Drugs Creator

    Jaksam

    $50.00$35.00
  • Gang War
    • ESX
    • QBCore
    Not for your framework

    Wasabi Gang War Phone (ESX/QB)

    Wasabi Scripts

    $26.00$18.20
  • Home Robbery Script FiveM resource preview
    • ESX
    Not for your framework

    Home Robbery Script

    $25.99$18.19
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $32.00$22.40
  • Home Robbery
    • ESX
    Not for your framework

    FiveM Home Robbery

    $7.99$5.59
  • FiveM Drug FX
    • ESX
    Not for your framework

    DrugFX by ModFreakz

    ModFreakz

    $18.99$13.29