Skip to content

Nithish-core/Alpha_Vehicle-Delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Delete Script for FiveM

A server-side script that automatically deletes empty vehicles every 10 minutes, excluding those in safe zones. Compatible with ESX, QB, and QBox frameworks.

Features

  • Automatically deletes empty vehicles every 10 minutes
  • Excludes vehicles in configured safe zones
  • Protects specified vehicle models from deletion
  • Framework auto-detection (ESX, QB, QBox)
  • Manual cleanup command for admins
  • Configurable settings
  • Debug mode for troubleshooting

Installation

  1. Download the latest release
  2. Extract the alpha_vehdelete folder to your resources directory
  3. Add ensure alpha_vehdelete to your server.cfg
  4. Configure the config.lua file to your needs
  5. Restart your server

Configuration

Edit config.lua to customize the script:

  • CheckInterval: Time between vehicle checks (in milliseconds)
  • SafeZones: Define safe zones where vehicles won't be deleted
  • ProtectedVehicles: List of vehicle models that should never be deleted
  • Debug: Enable/disable debug messages

Example Safe Zone Configuration

Config.SafeZones = {
    {coords = vector3(123.0, -1234.0, 29.5), radius = 50.0},  -- Example safe zone 1
    {coords = vector3(456.0, -789.0, 30.5), radius = 75.0}   -- Example safe zone 2
}

Commands

  • /cleanupvehicles - Manually trigger vehicle cleanup (admin only)

Requirements

  • FiveM server
  • One of the supported frameworks: ESX, QB-Core, or QBox
  • oxmysql (for database operations)

Support

For support, please open an issue on the GitHub repository. Contact: alpha07 (Discord)

About

Auto Vehicle Delete By Alpha Developments - Automatically remove unused/abandoned vehicles to keep your FiveM server optimized

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages