Skip to Content
Vehicle ShopConfiguration

Configuration

shared.lua
Config = {} -- ═══════════════════════════════════════════════════════════════════════════════════ -- SHARED CONFIGURATION -- ═══════════════════════════════════════════════════════════════════════════════════ -- UI settings Config.DefaultCurrency = "$" Config.MaxVehiclesPerPage = 50 Config.SearchMinLength = 2 Config.NotificationDuration = 5000 Config.UseRGBColorPicker = false -- true = RGB color picker, false = default color picker -- Photo settings Config.PhotoQuality = 0.8 -- Photo quality (0.1 - 1.0) Config.AutoPhotoUpload = true -- Test drive settings Config.EnableTestDrives = true Config.EnableVehicleSell = false Config.VehicleSellPercentage = 50 -- Percentage of original price player gets back (50 = 50%) Config.VehicleSellMethod = "marker" -- "marker" or "npc" Config.VehicleSellInteractionDistance = 5.0 -- Distance from which player can interact with sell point (marker or NPC) -- Admin settings Config.EnableAdminMenu = true Config.AdminMenuKey = "sdadmin" -- Showroom settings Config.EnableShowroom = true Config.EnableShowroomBlips = false Config.ShowroomBlipSprite = 225 Config.ShowroomBlipColor = 3 -- Coupon system settings Config.EnableCouponSystem = true -- Set to false to disable coupon system completely -- Animation settings Config.EnableTabletAnimation = true Config.TabletAnimationDuration = 5000 -- Ped settings Config.EnablePedGreeting = true Config.PedGreetingDistance = 3.0 -- Shop blip settings Config.EnableShopBlips = true Config.DefaultShopBlipSprite = 225 Config.DefaultShopBlipColor = 0 Config.VehicleCategories = { "electric", "super", "sports", "luxury", "suv", "test", "sedan", "compact", "motorcycle", "truck", "boat", "plane", "helicopter", "aircraft" } Config.Shops = { ["pdm"] = { label = "PDM", ped = "a_m_m_business_01", coords = vector4(-30.7071, -1106.7167, 25.4224, 343.0956), outsidecoords = vector4(-31.0, -1090.7, 26.42, 314.81), testcoords = vector4(-1735.94, -2926.65, 13.5, 314.81), testtime = 60000, -- in ms showroom = vector4(-76.1212, -821.3252, 285.0000, 161.1605), showroomcam = vector3(-74.3072, -824.6498, 285.2732), enablecash = true, enablebank = true, enablefaction = false, blip = {sprite = 225, color = 0}, job = false, vehtype = "car", categories = {"electric", "super", "sports", "luxury", "suv", "sedan", "compact", "motorcycle", "truck"}, sell = { coords = vector4(-46.1634, -1079.9620, 26.6880, 249.6826), -- For NPC: use vector4 with heading, for marker: vector3 works too ped = "a_m_m_business_01", -- NPC model (only used if method is "npc") blip = {sprite = 225, color = 0, label = "Sell Vehicle", scale = 0.8}, marker = { type = 1, -- Marker type (1 = cylinder, 2 = sphere, 3 = cylinder outline, etc.) size = {x = 4.0, y = 4.0, z = 3.0}, color = {r = 0, g = 255, b = 0, a = 100}, -- Marker color (RGBA) bobUpAndDown = false, -- Bob up and down animation faceCamera = false, -- Face camera rotate = false -- Rotate marker } } }, ["boatshop"] = { label = "Boat Shop", ped = "a_m_m_business_01", coords = vector4(-753.3803, -1512.4580, 4.0199, 24.8935), outsidecoords = vector4(-829.8826, -1475.8545, 4.0557, 205.3533), testcoords = vector4(-829.8826, -1475.8545, 4.0557, 205.3533), testtime = 60000, -- in ms showroom = vector4(-829.8826, -1475.8545, 4.0557, 205.3533), showroomcam = vector3(-828.6347, -1480.5961, 9.6336), enablecash = true, enablebank = true, enablefaction = false, blip = {sprite = 427, color = 3}, job = false, vehtype = "boat", categories = {"boat"}, sell = { coords = vector4(-796.9715, -1499.7433, -0.4745, 72.8849), ped = "a_m_m_business_01", blip = false, marker = { type = 1, size = {x = 2.0, y = 2.0, z = 1.0}, color = {r = 0, g = 255, b = 0, a = 100}, bobUpAndDown = false, faceCamera = false, rotate = false } } }, ["pdm2"] = { label = "PDM 2", ped = "a_m_m_bevhills_01", coords = vector4(-1257.3856, -369.0987, 36.9075, 0), outsidecoords = vector4(-1237.8584, -351.0988, 37.3328, 342.5700), testcoords = vector4(-1735.94, -2926.65, 13.5, 314.81), testtime = 60000, -- in ms showroom = vector4(-1250.6633, -362.2862, 36.9075, 89.6717), showroomcam = vector3(-1254.6343, -360.0143, 37.4445), enablecash = true, enablebank = true, enablefaction = false, blip = {sprite = 225, color = 4}, job = false, vehtype = "car", categories = {"electric", "super", "sports", "luxury", "suv", "sedan", "compact", "motorcycle", "truck"}, sell = { coords = vector4(-1260.0, -360.0, 36.0, 180.0), ped = "a_m_m_business_01", blip = false, marker = { type = 1, size = {x = 2.0, y = 2.0, z = 1.0}, color = {r = 0, g = 255, b = 0, a = 100}, bobUpAndDown = false, faceCamera = false, rotate = false } } }, }
Last updated on