馃殫 zdp-autovehiclesdeleter
Introduction (EN)
This script that鈥檚 all about optimizing your server. It clears out all those abandoned, empty, or wrecked vehicles off the map. You get to pick areas where the script won鈥檛 touch anything, specific vehicle types, individual vehicles, whether you want to zap occupied vehicles, NPCs, map objects, and, the cherry on top? You can fully customize the notification straight from the settings, easy peasy.
Usage Example
config.lua
-- Command to delete vehicles
Config.Command = "delveh"
-- If true, only admins can use the command (Recomended)
Config.restricCommand = true
-- Time to delete the vehicles
Config.Time = 30 -- [ In seconds ]
--Remaining time in seconds for the countdown to appear on screen
Config.NotificationsTime = 20 -- [ In seconds ]
--Remaining time in seconds for an alert in the notification
Config.AlertNotification = 10 -- [ In seconds ]
-- If true, vehicles with a driver will also be deleted
Config.BusyVehicles = false
-- If true, NPCs will also be deleted
Config.Peds = false
-- If true, objects will also be deleted
Config.Objects = false
-- If true, a notification will be sent to all players
Config.Notifications = true
/* Command that players will use to hide the notification
(this doesn't stop the deletion) */
Config.CommandHideNotification = "hidedelveh"
-- Hide counter in the notify
Config.HideCounter = false
-- Hide statusbar in the notify
Config.HideCounterBar = false
config.lua (Notifications)
-- Notification title
Config.NotificationTitle = "SISTEM"
-- Text to display on screen in first time
Config.NotificationsText = "Vehicle deletion"
-- Text to display on screen in second time
Config.NotificationsText2 = "Last seconds"
-- Text to display on screen in the final time
Config.NotificationsTextDelete = "Deleted vehicles"
-- Notification position
Config.NotificationsPositionX = "right"
-- Y position of the notification [45 to -45], 0 is the center.
Config.NotificationsPositionY = 0
-- Notification opacity
Config.NotificationOpacity = 1
-- Notification background color
Config.NotificationsColorBackground = "#202020d5"
-- Notification text color
Config.NotificationsColorText = "rgb(255,255,255)"
config.lua (Ignore zones/peds/objects)
-- Vehicles in these custom zones will not be deleted
Config.IgnoreZones = {
-- Cardealer Zone example
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
-- NPC's in these custom zones will not be deleted
Config.IgnoreZonesPeds = {
-- Cardealer Zone example
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
Config.IgnoreZonesObjects = {
-- Props in these custom zones will not be deleted
-- Cardealer Zone example
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
-- Vehicles that will not be deleted
Config.BlackListVehicles = {
"zentorno",
"adder",
--"akuma"
}
/* Vehicle classes
True will be deleted
False will not be deleted */
Config.BlackListClass={
[0] = true, -- Compacts
[1] = true, -- Sedans
[2] = true, -- SUVs
[3] = true, -- Coupes
[4] = true, -- Muscle
[5] = true, -- Sports Classics
[6] = true, -- Sports
[7] = true, -- Super
[8] = true, -- Motorcycles
[9] = true, -- Off-road
[10] = true, -- Industrial
[11] = true, -- Utility
[12] = true, -- Vans
[13] = true, -- Cycles
[14] = true, -- Boats
[15] = true, -- Helicopters
[16] = true, -- Planes
[17] = true, -- Service
[18] = true, -- Emergency
[19] = true, -- Military
[20] = true, -- Commercial
[21] = true, -- Trains
[22] = true -- Open Wheel
}
Introducci贸n (ES)
Este script se trata de optimizar tu servidor. Limpia todos esos veh铆culos abandonados, vac铆os o destrozados del mapa. Puedes elegir 谩reas donde el script no tocar谩 nada, tipos de veh铆culos espec铆ficos, veh铆culos individuales, si deseas eliminar veh铆culos ocupados, NPCs, objetos del mapa y, 驴lo mejor de todo? Puedes personalizar completamente la notificaci贸n directamente desde la configuraci贸n, f谩cil y r谩pido.
Ejemplo de uso
config.lua
-- Comando para eliminar veh铆culos
Config.Command = "delveh"
-- Si es verdadero, solo los administradores pueden usar el comando (Recomendado)
Config.restricCommand = true
-- Tiempo para eliminar los veh铆culos
Config.Time = 30 -- [ In seconds ]
-- Tiempo restante en segundos para que aparezca la cuenta regresiva en la pantalla
Config.NotificationsTime = 20 -- [ In seconds ]
-- Tiempo restante en segundos para una alerta en la notificaci贸n
Config.AlertNotification = 10 -- [ In seconds ]
-- Si es verdadero, tambi茅n se eliminar谩n los veh铆culos con conductor
Config.BusyVehicles = false
-- Si es verdadero, tambi茅n se eliminar谩n los NPCs
Config.Peds = false
-- Si es verdadero, tambi茅n se eliminar谩n los objetos
Config.Objects = false
-- Si es verdadero, se enviar谩 una notificaci贸n a todos los jugadores
Config.Notifications = true
/* Comando que los jugadores usar谩n para ocultar la notificaci贸n
(esto no detiene la eliminaci贸n) */
Config.CommandHideNotification = "hidedelveh"
-- Ocultar contador en la notificaci贸n
Config.HideCounter = false
-- Ocultar barra de estado en la notificaci贸n
Config.HideCounterBar = false
config.lua (Notifications)
-- T铆tulo de la notificaci贸n
Config.NotificationTitle = "SISTEMA"
-- Texto para mostrar en pantalla la primera vez
Config.NotificationsText = "Borrado de veh铆culos"
-- Texto para mostrar en pantalla la segunda vez
Config.NotificationsText2 = "脷ltimos segundos"
-- Texto para mostrar en pantalla la 煤ltima vez
Config.NotificationsTextDelete = "Veh铆culos borrados"
-- Posici贸n de la notificaci贸n
Config.NotificationsPositionX = "right"
-- Posici贸n Y de la notificaci贸n [45 a -45], 0 es el centro
Config.NotificationsPositionY = 0
-- Opacidad de la notificaci贸n
Config.NotificationOpacity = 1
-- Color de fondo de la notificaci贸n
Config.NotificationsColorBackground = "#202020d5"
-- Color de texto de la notificaci贸n
Config.NotificationsColorText = "rgb(255,255,255)"
config.lua (Ignore zones/peds/objects)
-- Los veh铆culos en estas zonas personalizadas no se eliminar谩n
Config.IgnoreZones = {
-- Ejemplo de zona de concesionarios
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
-- Los NPC en estas zonas personalizadas no ser谩n eliminados.
Config.IgnoreZonesPeds = {
-- Ejemplo de zona de concesionarios
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
-- Los accesorios en estas zonas personalizadas no se eliminar谩n
Config.IgnoreZonesObjects = {
-- Ejemplo de zona de concesionarios
{ Coords = vector3(-41.26, -1097.4, 26.0), Radius = 12.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
-- { Coords = vector3(0.0, 0.0, 0.0), Radius = 100.0 },
}
-- Veh铆culos que no ser谩n eliminados
Config.BlackListVehicles = {
"zentorno",
"adder",
--"akuma"
}
/* Clases de veh铆culos
Verdadero ser谩 eliminado
Falso no se eliminar谩 */
Config.BlackListClass={
[0] = true, -- Compactos
[1] = true, -- Sedanes
[2] = true, -- SUVs
[3] = true, -- Coup茅s
[4] = true, -- Muscle
[5] = true, -- Cl谩sicos Deportivos
[6] = true, -- Deportivos
[7] = true, -- Superdeportivos
[8] = true, -- Motocicletas
[9] = true, -- Todo terreno
[10] = true, -- Industriales
[11] = true, -- Utilitarios
[12] = true, -- Furgonetas
[13] = true, -- Bicicletas
[14] = true, -- Barcos
[15] = true, -- Helic贸pteros
[16] = true, -- Aviones
[17] = true, -- Servicio
[18] = true, -- Emergencia
[19] = true, -- Militares
[20] = true, -- Comerciales
[21] = true, -- Trenes
[22] = true -- Rueda Abierta (Monoplazas)
}