Use Coupon WELCOME to save 20%

$ USD
  • $ USD
  • € EUR
  • £ GBP
  • $ AUD
  • R$ BRL
  • CHF CHF
  • ¥ JPY
FiveM Vehicle Deleter

Auto Vehicle Deleter for FiveM

Auto Vehicle Deleter by axdevelopment removes server-visible vehicles on a timer or through a manual command. The inspected code is standalone: despite the repository description mentioning ESX, it imports no framework. Its distance protection checks every ped returned by GetAllPeds, not just players.

Configure the actual deletion rules

Place fxmanifest.lua and server.lua together in the vehicledeleter resource folder. Review settings before ensure vehicledeleter: starting the resource also starts its automatic timer. TimeInterval defaults to 60 minutes and DistanceToVehicles to 50 game units. Any nearby ped can protect a vehicle, including an NPC.

The default command is delcars. AllowedGroups is actually a list of full player identifiers, not framework groups or ACE roles. Replace the bundled identifier with your intended administrators and test both accepted and denied users. The server console is always accepted. The command is registered unrestricted and relies on its own identifier check.

Warnings are configured for 5, 3 and 1 minutes before the automatic wipe. Their text hardcodes 50 meters, so update it when changing the distance. The timer compares exact elapsed seconds; delayed ticks may miss a warning. A manual wipe neither sends advance warnings nor resets the automatic schedule.

Add protection that matches your server

The deletion loop has no ownership, garage, mission, vehicle-age or explicit occupancy check. Occupants can indirectly protect vehicles through the ped-distance test, but that is not a complete retention policy. Add explicit exemptions and a list-only test mode before enabling it around persistent or mission vehicles.

Test empty distant vehicles, NPC-occupied vehicles, player proximity, owned parked cars and mission entities in a disposable environment. The reported count increments after DeleteEntity without checking that deletion succeeded. The nested vehicle/ped scan has not been benchmarked here; do not infer a performance improvement from fewer vehicles alone.

Reviewed on 11 September 2026 at revision 0e7d507e14ce3eca98202f9e75f7933f4b91fde6. All supplied source files were read. No cleanup command, vehicle deletion or production-game test was executed.

Read the pinned Auto Vehicle Deleter source

Leave a Reply