🚘
Marcus - Smart Car System
  • 🚗Smart Car System
  • Fundamentals
    • 🛠️Getting set up
    • ⚙️Config File
Powered by GitBook
On this page
  1. Fundamentals

Config File

Config = {}

-----------------------------------------------------------
--             General setting for the script            --
-----------------------------------------------------------

Config.DeveloperMode    = true -- Set this true to use /addmodel and /removemodel

Config.DashboardKey     = 288 -- Default (F1) = 288

-----------------------------------------------------------
--             Graphical User Interface (GUI)            --
-----------------------------------------------------------

Config.QuickControls             = "Quick Controls"
Config.Suspension                = "Suspension"
Config.Driving                   = "Driving"
Config.AutopilotText             = "Autopilot"
Config.ExteriorLights            = "Exterior Lights"
Config.OpenText                  = "Open"
Config.CloseText                 = "Close"
Config.RideHeight                = "Ride Height"
Config.Veryhigh                  = "Very High"
Config.High                      = "High"
Config.Standard                  = "Standard"
Config.Low                       = "Low"
Config.AccelerationText          = "Acceleration"
Config.RegenerativeBraking       = "Regenerative Braking"
Config.RegStandard               = "Standard"
Config.RegLow                    = "Low"
Config.AutoSteerText             = "Autosteer"
Config.RemoteControlText         = "Remote Control"
Config.ForwardColWar             = "Forward Collision Warning"
Config.ForwardLate               = "Late"
Config.ForwardMedium             = "Medium"
Config.ForwardEarly              = "Early"
Config.AutoEmergBrake            = "Automatic Emergency Braking"
Config.DisplayBrightness         = "Display Brightness"

-----------------------------------------------------------
--                  Notifications (VRC)                  --
-----------------------------------------------------------

Config.TurnWarningOff       = "turnoffwarnings"                     -- This command disables tyre pressure, oil and other warnings

Config.NotificationsOn      = "Notifications turned on!"
Config.NotificationsOff     = "Notifications turned off!"
Config.NotInVehicle         = "You're not in any vehicle."

Config.CCDisengaged         = "Cruise Control disengaged"
Config.CCEngaged            = "Cruise Control engaged"
Config.CD                   = "Collision detected!"
Config.CDCCD                = "Collision detected! Cruise Control disengaged"
Config.RCe                  = "Remote Control engaged"
Config.RCde                 = "Remote Control disengaged"
Config.SLRCD                = "Signal Lost! Remote Control disengaged"
Config.CDRCD                = "Collision detected! Remote Control disengaged"


Config.BrokenHeadlight      = "Broken vehicle headlights detected"
Config.TyrePressureLow      = "Low tyre pressure detected"
Config.CheckEngine          = "Check Engine lights on"
Config.HighEngineTemp       = "High engine temperature detected"
Config.LowOilLevel          = "Low oil level detected"

Config.AutopilotEngaged          = "Autopilot engaged." 
Config.AutopilotDisengaged       = "Autopilot disengaged." 
Config.DestinationReached        = "Destination reached."
Config.MinSpeedLimitReached      = "Minimum speed limit reached."
Config.MaxSpeedLimitReached      = "Maximum speed limit reached."
Config.SelectDestination         = "Select your destination."

-----------------------------------------------------------
--              Vehicle Remote Control (VRC)             --
-----------------------------------------------------------

Config.RemoteEnabled    = true
Config.RemoteCommand    = "remote"
Config.AddModelCommand  = "addmodel"
Config.RemoveMdlCommand = "removemodel"
Config.RemoteRadius     = 15.0 
Config.PhoneHash        = "p_cs_cam_phone"
Config.RemoteMaxSpeed   = 1.5

Config.RemoteForward    = 172 -- Default (Up Arrow) = 172
Config.RemoteBackward   = 173 -- Default (Down Arrow) = 173
Config.RemoteLeft       = 174 -- Default (Left Arrow) = 174
Config.RemoteRight      = 175 -- Default (Right Arrow) = 175

-----------------------------------------------------------
--                    Tesla Autodrive                    --
-----------------------------------------------------------

Config.ReverseKeycode                = 73     -- Default (X) = 73
Config.AutodriveKeycode              = 289    -- Default (F2) = 289
Config.AutodriveIncreaseSpeedKey     = 96     -- Default (Numpad +) = 96 (ALSO FOR CRUISE CONTROL)
Config.AutodriveDecreaseSpeedKey     = 97     -- Default (Numpad -) = 97 (ALSO FOR CRUISE CONTROL)

-----------------------------------------------------------
--                    SQL Connection                     --
-----------------------------------------------------------

Config.SelectAllVehicles = 'SELECT owner, plate FROM owned_vehicles'
Config.SteamId           = true -- Your owned vehicles saved by license or steam id? If false = license. If true = steamid

-----------------------------------------------------------
--                 Notification handler                  --
-----------------------------------------------------------

Config.NotificationManager = "marcus"

Config.Notification = function(message, timeout, mtype, customIcon, iconUrl, muted) --<< You can change here events for notifications
    if Config.NotificationManager == "esx" then
        TriggerEvent("esx:showNotification", message)
    elseif Config.NotificationManager == "marcus" then
        TriggerEvent("marcus_notify:sendNotification", message, timeout, mtype, customIcon, iconUrl, muted)
    elseif Config.NotificationManager == "custom" then
        print("Your trigger event goes here.")
    end
end
PreviousGetting set up

Last updated 1 year ago

⚙️