Configuration
Don't touch this line:
Config, Lang, Blips, Noti = {}, {}, {}, {}
Framework Setup
-- Use "esx" or "qb"
Config.Framework = "esx"
-- If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = ""
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "esx:getSharedObject"
-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
General Settings
-- Minimum distance required to display the parking marker
Config.markerDistance = 20
-- Minimum distance required for the "Press E to access the garage" warning to appear
Config.alertDistance = 2
-- Modify only if the maximum speed bar contains errors
Config.maxspeedBarMultiplier = 3
-- If set to false, Mph will be used
Config.useKmh = true
-- If you want the user to be teleported directly to the vehicle when they drive it out of the garage
Config.teleportUser = true
-- Command to create custom garages for jobs or users. For administrators only
Config.createGarageCommand = "creategarage"
-- Set to true if you use OX_Inventory
Config.useOXInventory = true
-- Set to true if you use QS-Inventory
Config.QSInventory = false
-- Keep true if you want vehicles to be stored in each garage independently
-- Set to false if you want to be able to remove vehicles from any garage
Config.individualGarages = false
-- Check if the vehicle has been parked in a garage
-- Set to false if administrators use /dv to delete vehicles
Config.checkVehParked = true
-- Allow transfer of vehicles between users
Config.allowTransfer = true
-- Command to delete vehicles but send them to Central garage (alternative to /dv)
Config.adminDVVCommand = "dvv"
-- Use only to get debug info
Config.debug = false
Massive Delete Vehicle
-- Serves to eliminate all vehicles without owners that are in the city
-- You can decide whether you want these vehicles to be impounded or simply stored in the garage
Config.useMassiveDeleteVehicle = true
Config.massiveDeleteCommand = "crane"
Config.massiveDeleteTime = 2
Config.deleteVehiclesInGarages = true
Config.massiveImpoundVehicles = true
Config.massiveImpoundPrice = 1500
Config.massiveDeleteSchedule = {
{h = 10, m = 00},
{h = 12, m = 00},
{h = 14, m = 00},
{h = 16, m = 00},
{h = 18, m = 24},
{h = 20, m = 00},
{h = 22, m = 00},
}
Give Car
-- Command to deliver a vehicle to a user
-- First you must spawn it and get on it
-- Usage: /givecar USERID
Config.giveCarCommand = "givecar"
Config.plateLetters = 3
Config.plateNumbers = 3
Config.plateUseSpace = true
Delete Car
-- Command to delete a vehicle from a user account
-- Usage: /deletecar PLATE
Config.deleteCarCommand = "deletecar"
Key System
Config.useKeySystem = true
-- Command to use the vehicle key
Config.openLockMenu = "carkey"
-- Key to open vehicle key menu
Config.keyOpenLockMenu = "L"
-- Command to hand over a vehicle key to another user
-- Usage: /givekey ID
Config.giveKeyCommand = "givekey"
-- Command to remove the key assigned to another user
-- Usage: /removekey
Config.removeKeyCommand = "removekey"
Config.adminGroups = {
"admin",
"superadmin",
"god",
"moderator"
}
Taxes
-- If you activate this function, users will receive a tax for each vehicle they own
Config.useTaxes = true
-- Price you want to be applied for each vehicle
-- Example: if the user has 5 cars and the tax is 1500, the total to be paid will be 7500$
Config.taxesPrice = 1500
-- Taxes will be applied every day at this time
Config.hour = 18
Config.minute = 30
Lock System
-- If activated, all vehicles will be blocked (especially those of NPCs)
Config.useLockSystem = true
-- Possibility of the vehicle being open (from 0 to 100)
Config.luckyChance = 5
-- Vehicles that will always be open (e.g., work vehicles)
Config.whitelistedVehicles = {
"t20",
"zentorno"
}
-- Vehicles that will always be closed (e.g., emergency vehicles)
Config.blacklistedVehicles = {
"police",
"police2",
"sheriff3",
"sheriff2",
"sheriff",
"ambulance"
}
Lockpicking
-- If you want to display a lockpicking mini-game
Config.useLockPickSystem = true
-- Item needed to start the mini-game and unlock the vehicles
Config.lockpickItem = "lockpick"
Radars
-- Enabling or disabling the use of speed cameras
Config.useRadars = true
-- Keep true if you want to send fines (Configure in functions.lua)
Config.SendBill = true
-- Activate if you want the police to be notified when a speed camera is triggered
Config.NotifyPolice = true
-- If you want to use your own warning system, activate this option and configure it in the open function
Config.useConfigPoliceNoti = true
-- Prop to be used as speed camera
Config.CamProp = "prop_cctv_pole_01a"
-- If you want to display the speed as "kmh" or "mph"
Config.Speedunit = "kmh"
-- If you want a flash effect to be used when taking the picture
Config.useFlash = true
-- If you want a sound effect to be used when taking the picture
Config.useSound = true
-- Vehicles that will not be affected by the speed camera
Config.VehWhitelistCustom = {
[1] = "police",
[2] = "police2",
[3] = "ambulance",
[4] = "firetruk"
}
-- Add a discord webhook where the radar images will be received
Config.radarWebhook = ""
Fake Plate
-- Set to true if you want to use a system for using false license plates
Config.useFakePlate = true
-- How many letters in the license plate
Config.letters = 4
-- How many numbers in the license plate
Config.numbers = 4
-- If you want to use spaces on the fake plate
Config.useSpaces = false
-- Name of the item to be used as a false registration plate
Config.fakePlateItem = "fakeplate"
-- Name of the item to be used as the original license plate
Config.originalPlateItem = "originalplate"
-- If you want to make it necessary to have an item as a tool set to true
Config.needTool = true
-- Name of the item to be used as a tool
Config.toolItem = "screwdriver"
-- Add a discord webhook where information will be received when a user changes the license plate
Config.fakePlateWebhook = ""
Impound
-- Admin-only command that will eliminate the nearest vehicle and impound it
Config.adminDVICommand = "dvi"
-- Default money required to remove the impounded vehicle with the admin command
Config.adminDVIAmount = 1500
Config.authorizedJobs = {
["police"] = true,
["sheriff"] = true,
["mechanic"] = true,
}
Config.Impounder = {
{
name = 'Police Impound',
blipSprite = 67,
blipColor = 17,
blipScale = 1.1,
loc = {x = 409.18, y = -1624.44, z = 29.29, rot = 238.11},
pedModel = 's_f_y_cop_01',
park = {x = 401.35, y = -1632.19, z = 29.29, rot = 322.6},
spawn = {x = 418.19, y = -1646.30, z = 29.29, rot = 232.44},
camera = vector3(421.30, -1651.66, 29.27),
cameraRot = 224.85
},
{
name = 'City Impound',
blipSprite = 67,
blipColor = 17,
blipScale = 1.1,
loc = {x = 490.67, y = -1318.1, z = 29.24, rot = 324.07},
pedModel = 's_m_y_garbage',
park = {x = 489.61, y = -1313.27, z = 29.26, rot = 290.0},
spawn = {x = 489.61, y = -1313.27, z = 29.26, rot = 290.0},
camera = vector3(495.16, -1313.92, 29.26),
cameraRot = 260.85
},
}
Blips
Config.useBlips = true
-- Car Garages
Blips.blip = 524
Blips.blipColor = 2
Blips.blipScale = 0.9
Blips.blipText = "Garage"
-- Boat Garages
Blips.Bblip = 356
Blips.BblipColor = 2
Blips.BblipScale = 0.9
Blips.BblipText = "Boats Garage"
-- Plane Garages
Blips.Pblip = 359
Blips.PblipColor = 2
Blips.PblipScale = 0.9
Blips.PblipText = "Planes Garage"
Markers
Config.enterParkingIcon = "π
ΏοΈ"
Config.enterSaveCarIcon = "π"
Lang.garage = "Garage"
Lang.garageSave = ""
Config.useMarkers = true
enterParkingMarker = {
mtype = 23,
-- RGB COLOR:
r = 245,
g = 14,
b = 70
}
enterSaveCarMarker = {
mtype = 23,
-- RGB COLOR:
r = 245,
g = 14,
b = 70
}
Notifications
function notifications(notitype, message, time)
-- Change this trigger for your notification system keeping the variables
TriggerEvent('codem-notification', message, time, notitype)
end
-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
-- Notification time:
Noti.time = 5000
Language Strings
Lang.vehicleSaved = "Vehicle has been saved"
Lang.vehicleNoOwner = "This vehicle is not yours"
Lang.vehicleTaken = "The vehicle has been properly taken out of the garage"
Lang.savedPrivGarage = "The private garage has been successfully saved"
Lang.yourVehicle = "Your Vehicle"
Lang.lockpickInfo = "Use [A / D] and [Mouse] to force"
Lang.noLockedCar = "Vehicle is not locked or has an occupant"
Lang.noNearbyVeh = "There is no vehicle nearby"
Lang.lpOpen = "The vehicle has been opened!"
Lang.lpFail = "You have failed!"
Lang.vehicleLocked = "Vehicle has been locked"
Lang.vehicleUnlocked = "Vehicle is unlocked"
Lang.nosynckey = "You have not synchronized the key with any vehicle."
Lang.modifiedPlate = "You have already modified the license plate of a vehicle"
Lang.plateNoVeh = "This license plate does not belong to this vehicle"
Lang.noMoney = "You do not have enough money"
Lang.noRemove = "This vehicle cannot be removed."
Lang.vehStreet = "The vehicle is already on the street"
Lang.alrKeys = "You already have these keys assigned to someone"
Lang.notAssignedKey = "You do not have this key assigned"
Lang.forgotTool = "You forgot the tool"
Lang.transferedVeh = "The vehicle has been transferred"
Lang.noAdmin = "You do not have permissions"
Lang.noVehPlate = "There is no vehicle with this plate"
Lang.removedVeh = "The vehicle has been removed from the database"
Lang.vehDelivered = "The vehicle has been delivered"
Lang.vehDelUser = "The vehicle has been delivered to the user"
Lang.massiveDelAlert = "All unattended vehicles will be deleted in"
Lang.minutes = "minutes"
Lang.massiveDelOK = "All unattended vehicles have been deleted"
Lang.cantSpawn = "The vehicle cannot be taken out of the garage because there is a vehicle in the area"
Lang.menuInVehicle = "You cannot access this menu while in a vehicle"