A server-side script that automatically deletes empty vehicles every 10 minutes, excluding those in safe zones. Compatible with ESX, QB, and QBox frameworks.
- 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
- Download the latest release
- Extract the
alpha_vehdeletefolder to yourresourcesdirectory - Add
ensure alpha_vehdeleteto your server.cfg - Configure the
config.luafile to your needs - Restart your server
Edit config.lua to customize the script:
CheckInterval: Time between vehicle checks (in milliseconds)SafeZones: Define safe zones where vehicles won't be deletedProtectedVehicles: List of vehicle models that should never be deletedDebug: Enable/disable debug messages
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
}/cleanupvehicles- Manually trigger vehicle cleanup (admin only)
- FiveM server
- One of the supported frameworks: ESX, QB-Core, or QBox
- oxmysql (for database operations)
For support, please open an issue on the GitHub repository. Contact: alpha07 (Discord)