πŸ†— okokDeleteVehicles [STANDALONE][PAID]

okokdeletevehicles

[Preview]
Preview Link


[Explanation]

This is a script that allows you to delete all the vehicles in your server through a command or by setting specific times for the cleaning to be automatically executed. You can prevent vehicles from being wiped out if they are inside a safe zone.


[Funcionality]

You can set multiple times of the day to automatically delete all vehicles without driver/passenger and if they are outside a safe zone.

You can set a safe zone by simply adding its coordinate to the config file.

There is the possibility of choosing if you want safe zones to have a blip on the map, and its radius size.

Notifications are not included.


[Config]

-- Chat command to delete vehicles
Config.Cmd = "deletevehicles"

Config.ESX = false -- Set this to true if you use ESX 

-- If you use ESX you don't need to add any identifier to Config.AdminList because it checks if you have permission by your player group (superadmin, admin, mod)

-- Types of identifiers: steam: | license: | xbl: | live: | discord: | fivem: | ip:
Config.AdminList = {
	'license:2ash123ad1337a15029a21a6s4e3622f91cde1d0', -- Example, change this
	'discord:370910283901283929' -- Example, change this
}

-- Time (in minutes) that it will take to delete vehicles since you execute the command
Config.DeleteVehicleTimer = 0

-- If true it'll delete vehicles inside safezones
Config.DeleteVehiclesIfInSafeZone = false

-- Delete vehicles automatically at this time every day (h = hour m = minutes)
Config.DeleteVehiclesAt = {
	{['h'] = 19, ['m'] = 10},
	{['h'] = 19, ['m'] = 20},
	{['h'] = 19, ['m'] = 30},
}

-- Set safezones
-- For the blip color check: https://docs.fivem.net/docs/game-references/blips/#blip-colors
-- If you want to remove the blip simply set 'alpha' to 0
Config.SafeZones = {
	{ ['x'] = -44.15, ['y'] = -1100.15, ['z'] = 26.26, ['radius'] = 50.0, ['color'] = 2, ['alpha'] = 150},
	{ ['x'] = -1688.43, ['y'] = -1073.62, ['z'] = 13.15, ['radius'] = 200.0, ['color'] = 2, ['alpha'] = 150},
	{ ['x'] = -2195.13, ['y'] = 4288.72, ['z'] = 49.17, ['radius'] = 150.0, ['color'] = 2, ['alpha'] = 150},
}

[Optimization]

Idle: 0.01ms

While deleting vehicles: 0.04-0.05ms


Download (3.99€)

Get this resource at Tebex

  • Easy to use
  • No IP lock
  • Source code
  • Fully customizable
  • Easy install

Check my other scripts :arrow_down:

:heavy_check_mark: okokBanking

:heavy_check_mark: okokChat

:heavy_check_mark: okokBilling

:heavy_check_mark: okokTalkToNPC

:heavy_check_mark: okokContract

:heavy_check_mark: okokReports

:heavy_check_mark: okokRequests

:heavy_check_mark: okokTextUI

:heavy_check_mark: okokNotify

1 Like

Bruh … You can literally write this in less than 1 hour,
People are trying to make everything #paid its awful, The only thing that pointed out to me was the timer but thats also easy to do.

10 Likes

Hi rezaCyber, thank you for your comment. I have a particular question, do I come to your topics saying how hard it is to do your scripts? From what I’ve seen you have nothing special, only exaggerated prices and scripts without any utility. There are opinions that we should keep to ourselves!

َAt least im not charging people for a single command like this mate.
if you want to keep our opinion to your self keep it, But i can tell my opinion about this topic and already wrote it.
If i had time i would probably write this command and release it for free…

3 Likes

Thank you for your opinion, I like constructive criticism, appreciate it.

simple but does the job!

how would i add a chat message to warn players?

I would like to add a chat message that says the following

Car Wipe 5 minutes

Car Wipe 2 Minutes

Car Wipe 30 seconds

Car Wipe Done.

I Understand how to create chat messages but if you could help with implementing this then it would be much appreciated !

2 Likes

Hi, it’s already done, you should change the default notifications on client.lua to a chat message.

just noticed, thank you for your rapid response :slight_smile:

np :slight_smile:

Okay to change resource name ?

Yeah, there is no problem.

1 Like

sorry last question :wink: my vps is 1 hour behind my time so does the auto wipe time need to be same as vps local time ?

Yes, you should set it up according to the VPS time.

1 Like

sure YOU can, maybe ME too. But new Server owners? hell no
You get Servers for as cheap as 4€ per month. Many kids are trying themselfes in owning a project even without the knowledge of .lua

So you’re right, but wrong

There is a script doing the exact same for free here: Auto Delete Pro - Ultimate Vehicle Cleanup Solution

Github: GitHub - CodineerDigital/AutoDeletePro

This script does the same Auto Delete Pro - Ultimate Vehicle Cleanup Solution
It’s free and also with the timer thing

1 Like

Please just don’t criticise saying this script is the same as that script even if it might be the same, they put hard work into this.

Thank you for telling me that, that’s a very important information for me, if it wasn’t you I wouldn’t even be alive, just imagine.

:rofl: nice find.

Nice work once again, this will be really useful for me