A /dv script, but there is a radius and there is a /staffdv which deletes the vehicle even if there is a player inside.
v.1.0.0
- Release
v.1.0.1
- Bug Fixes
v.1.2.0
- Added Full Control Over Script in noti.lua
noti.lua Code:
Config = {}
--Standalone Notifications
local standaloneNoti = true -- Boolean whether standalone notifications should be used or not.
if standaloneNoti then
RegisterNetEvent("QuagsNotify:Icon")
AddEventHandler("QuagsNotify:Icon", function(title, text, time, color, icon)
if color == "negative" then
SetNotificationTextEntry( "STRING" )
AddTextComponentString( "~r~"..text )
DrawNotification( true, false )
else
SetNotificationTextEntry( "STRING" )
AddTextComponentString( text )
DrawNotification( true, false )
end
end)
end
--Radius Settings
Config.radiusForNearby = 10 -- Radius to check for the closest vehicle
Config.maxRadiusForMember = 20 -- Maximum radius for /dv. If there number is higher than this, it just sets their input to the max value.
Config.maxRadiusForStaff = 40 -- Maximum radius a staff member can use their command. If there number is higher than this, it just sets their input to the max value.
--Config For Notification Text
Config.noNumber = "Please type in a number for the radius." -- Message if a letter was typed instead of a number for the radius
Config.vehDltSuccess = "Vehicle deleted." -- Message after a vehicle is deleted with /dv or /staffdv
Config.plrInVeh = "There is a player in this vehicle." -- Message for using /dv when a person is in the vehicle
Config.noNearbyVeh = "No nearby vehicles found." -- Message after finding no vehicles with just the command /dv
Config.noVehF = "No vehicles found." -- Message after deleting with radius found no vehicles
Config.moreThanOneDlt = "Deleted {vehNum} vehicles." -- Message for multiple vehicles deleted with a radius
Config.oneVehDlt = "Deleted 1 vehicle." -- Message for 1 vehicle deleted in with the radius
Config.noAllowRadius = "You aren't allowed to delete vehicles in a radius." -- No staff permision message for using a radius
Config.areaClearSuccess = "Area cleared." -- Message when the area is successfully cleared
Config.areaNoPerm = "You aren't allowed to clear the area." -- Message for no permission for clear area
--Commands
Config.dltVehCMD = "dv" -- DV command
Config.dltVehStaffCMD = "staffdv" -- Staff Dv Command
Config.areaVar = "area" -- vMenu clear area variable for /staffdv
--Command Chat Help
Config.dvGenDescription = "Deletes vehicle(s)." -- Description for /dv
Config.secondDvDescriptionName = "radius" -- Name in chat suggestions after /dv and /staffdv
Config.secondDvGenDescription = "You must be a staff member to use the radius. Max radius is "..Config.maxRadiusForMember.."." -- Description for /dv radius
Config.staffDvGenDescription = "Deletes vehicle(s) with ped inside. (Staff Only)" -- Description for /staffdv
Config.secondStaffDvGenDescription = "Max radius is "..Config.maxRadiusForStaff..'. Type "'..Config.areaVar..'" to clear the area.' -- Description for /staffdv radius
--Necessary to Transfer Config to Everything
TriggerEvent("QuagsDV:Ready", Config)
Quags DV Showcase
-
To give access for /staffdv and /dv [RADIUS] put add_ace group.[GROUP] âquags.staffâ allow in the server.cfg
-
Notification system is compatible with other notification scripts. Just edit noti.lua
Get The Resource Here (Escrow Encrypted)
TEBEX Pay What You Want
Code is accessible | Notification |
Subscription-based | No |
Lines (approximately) | 280+ |
Requirements | None |
Support | Yes |