Fast Support
Reliable Scripts
Encrypted & Unencrypted Options
Fair Prices
💸 Black Friday: 20% OFF on everything! 💸

Installation Instructions for gs_bodybag

Follow these steps to properly install and configure your new resource:

  1. Download the Resource
    • Go to portal.cfx.re
    • Navigate to Assets > Granted Assets > gs_bodybag
    • Download the resource
  2. Extract the Files
    • Open the downloaded .zip file
    • Inside, you'll find a folder named gs_bodybag
    • Move the entire gs_bodybag folder into your desired server resources folder (e.g., /resources/[scripts])
  3. Add to Server Configuration
    • Open your server.cfg
    • Add the following line:
      ensure gs_bodybag
  4. Restart the Server
    • Restart your FiveM server (Important!)
  5. Configure the Script (Optional)
    • Navigate to gs_bodybag/config.lua
    • Edit the configuration options to fit your server's needs
Additional documentation

No target option to bodybag?

Dead players are detected by the function Functions.CanTargetBePlacedInBodybag located in gs_bodybag/bridge/cl_bridge.lua. In case you do not have a target option to bodybag a dead player, double check this function to see if the death-system you are using is implemented. Otherwise you may need to slightly adjust this function.

Recommended adjustment for respawning players

There are two server-sided exports available:

exports.gs_bodybag:AddBodybag(playerServerId)
exports.gs_bodybag:RemoveBodybag(playerServerId)

Within your respawn-script, you should add the RemoveBodybag export to ensure the bodybag is properly cleaned up when a player respawns.

Inventory Items
Included images
Installation Instructions

Add the following items to your ox_inventory/data/items.lua file:

['bodybag'] = {
    label = 'Bodybag',
    weight = 250,},

Execute the following SQL query to add the items to the database:

INSERT INTO
	`items` (`name`, `label`, `weight`, `rare`, `can_remove`)
VALUES
	('bodybag', 'Bodybag', 0, 0, 1);

Add the following items to your qb-core/shared/items.lua file:

['bodybag'] = {
    ['name'] = 'bodybag',
    ['label'] = 'Bodybag',
    ['weight'] = 250,
    ['type'] = 'item',
    ['image'] = 'bodybag.png',
    ['unique'] = false,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
},