Auto Vehicles Deleter - Server Optimization - FiveM Standalone Script

A script by dalifoughali

No reviews yet.
Auto Vehicles Deleter - Server Optimization - FiveM Standalone Script main image

Full Description

Auto Vehicles Deleter - Server Optimization - FiveM Standalone Script

The Auto Vehicles Deleter is a FiveM simple script that optimize your server by removing the empty, abandoned and destroyed vehicles all over your server’s map, except certain areas you can configure in the config file called The Ignore Zones, with a live countdown timer that synchronize with all your server’s players to notify them.
The script is fully configurable, from the time between each Auto Delete, to the timer’s duration, and the timer’s screen position etc…
And ready to use commands, to control the Auto Deleter manually, from start the countdown manually to stop it.

Config File:

Config = {}

Config.TimeLoop = 55 -- In Minutes - Every 55 minues the counter shows on screen before the auto vehicles deleter
Config.TimerDuration = 5  -- In Minutes - The timer start counting 5 minutes before the auto vehicles deleter
Config.TimerLastAlert = 20  -- In Seconds - The timer's color change to red when it reachs 20 seconds to alert players

Config.ScreenTimer = { -- Timer screen position
	Text = {0.025, 0.486}, -- Timer text screen position
	Rect = {0.08, 0.50}, -- Timer background screen position
	
	Font = 4, -- Timer text font type
	CustomFont = { -- This option for servers that use custom fonts or other languages - Used Natives: RegisterFontFile(FontName) / RegisterFontId(FontName)
		UseCustomFont = false, -- Set to "true" to enable using custom font
		FontName = '', -- Custom font file name
	}
}

------------------------------------------------------------------------------------------------------------------
------------------------------------------------ Ignore Zones ----------------------------------------------------

Config.IgnoreZones = { -- Vehicle in this custom zones will not be deleted
	{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 42.0 }, -- Cardealer Zone example
	-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
	-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}

------------------------------------------------------------------------------------------------------------------
------------------------------------------------- Translation ----------------------------------------------------

Config.Translation = {
	['auto_vehs_del']	= 'Auto vehicles deleter',
	['all_clear']		= 'All clear, enjoy your game',
}

------------------------------------------------------------------------------------------------------------------
------------------------------------ Pre-Configured Timer Screen Position ----------------------------------------

-- Right Side:

	-- Top Right:
		-- Text = {0.87, 0.036},
		-- Rect = {0.925, 0.05},

	-- Middle Right:
		-- Text = {0.87, 0.486},
		-- Rect = {0.925, 0.50},

	-- Bottom Right:
		-- Text = {0.87, 0.936},
		-- Rect = {0.925, 0.95},



-- Left Side:

	-- Top Left:
		-- Text = {0.025, 0.036},
		-- Rect = {0.08, 0.05},

	-- Middle Left:
		-- Text = {0.025, 0.486},
		-- Rect = {0.08, 0.50},

	-- Bottom Left:
		-- Text = {0.025, 0.936},
		-- Rect = {0.08, 0.95},

Preview: Youtube Link
Buy Here : Tebex Link ($6.99 + Tax)

You might like one of my scripts

Code is accessible config file
Subscription-based No
Lines (approximately) 270
Requirements No
Support Yes