The tr_carbomb script allows players to plant and remove bombs on vehicles in a FiveM server. The bombs can be set to detonate under various conditions such as when a player enters the vehicle, starts the engine, or reaches a specified speed.
https://streamable.com/pt35k9 If you have any suggestions/ideas you can contact me on discord: _.trowe
- Place Bombs on Vehicles: Plant bombs that explode under different conditions.
- Remove Bombs from Vehicles: Safely disarm and remove bombs from vehicles.
- Customizable Configurations: Adjust bomb types, speed units, and other settings through the
config.luafile.
- Download: Download the script and place it in your server's
resourcesfolder. - Add to Server Configuration: Add the following line to your
server.cfg: ensure tr_carbomb - Configure: Edit the
config.luafile to customize the settings according to your server's needs.
The config.lua file allows you to customize various aspects of the script:
Config = {}
-- Set this to 'esx' or 'qb' depending on your framework
Config.Framework = 'esx'
-- Set this to the inventory system you are using. 'ox' for ox_inventory or 'qb' for qb-inventory
Config.Inventory = 'ox'
-- Item names
Config.BombItem = 'car_bomb'
Config.RemoverItem = 'car_bomb_remover'
-- Speed Unit 'kmh' or 'mph'
Config.SpeedUnit = 'kmh'
-- Interaction distance
Config.InteractionDistance = 2.0
-- Bomb planting duration (in ms)
Config.PlantDuration = 5000- Enter Bomb: Detonates when a player enters the vehicle.
- Engine Bomb: Detonates when the engine is started.
- Speed Bomb: Detonates when the vehicle reaches the specified speed.
- Framework: Compatible with both ESX and QB-Core frameworks.
- Inventory: Compatible with ox_inventory and qb-inventory.
- ox_lib