From d583d881e4dcc31554407ad4632a3b98ddd8fa4f Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Mon, 23 Jun 2025 20:12:22 +0200 Subject: [PATCH] fixes --- .../mt_dealerships/dealerships/map4allpdm.lua | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 resources/[carscripts]/mt_dealerships/dealerships/map4allpdm.lua diff --git a/resources/[carscripts]/mt_dealerships/dealerships/map4allpdm.lua b/resources/[carscripts]/mt_dealerships/dealerships/map4allpdm.lua new file mode 100644 index 000000000..0afd907d7 --- /dev/null +++ b/resources/[carscripts]/mt_dealerships/dealerships/map4allpdm.lua @@ -0,0 +1,42 @@ +Config.dealerships = Config.dealerships or {} + +Config.dealerships.cardealer = { -- Dealership ID, NEEDS TO BE THE SAME AS THE JOB!!! + enabled = true, -- true or false to enable or disable the dealership + label = 'Premium Deluxe Motorsports', -- Dealership label + logo = 'https://i.ibb.co/nkBN3bs/logo.png', -- Dealership logo that'll show on UI + job = false, -- Dealership job or false to not player owned dealerships, NEEDS TO BE THE SAME AS THE ID!!! + lockCatalogueJob = false, -- can be false for everyone to open the catalogue or a job if you want to lock it to some job + currency = 'bank', -- bank, cash or money to ESX (Also to QBCore you can choose other currency like crypto and etc) + useStock = false, -- When using job = false this will be ignored + allowBuyCatalogue = true, -- If true players will be able to buy the vehicles on the catalogue + allowChangeVehicle = false, -- If true players will be able to change the vehicles on the catalogue witout job + needsMission = true, -- Set to false or true to disable/disable the needing of going pick up the car + testDriveRoutingBucket = true, -- Set this to false if you don't want the test drive to be inside of a Routing Bucket + testDriveTime = 50, -- Test drive time in seconds + testDriveSpawn = vec4(-69.48, -1105.88, 26.07, 73.5), -- Test drive spawn coords + truck = 'packer', -- The truck used on importation + trailer = 'tr4', -- The trailer used on importation + truckSpawn = vec4(-58.46, -1072.99, 27.23, 70.0), -- Importation truck spawn coords + buySpawn = vec4(-17.59, -1107.66, 26.65, 161.25), -- Vehicle buy spawn coords + comissions = { buyPercentage = 50, sellComission = 10 }, -- The dealership commisions (buyPercentage is the percentage of vehicle price that the dealership will buy it and the sellComission is the comission that the employee will earn on selling vehicles to players) + blip = { enabled = true, coords = vec3(-58.01, -1097.08, 26.44), sprite = 523, color = 3, scale = 0.6, display = 4 }, -- Dealership map blip + dashboards = { -- Dealership dashboards to import vehicles and see transations and etc + { coords = vec3(-45.9, -1090.5, 26.4), radius = 0.5, includeBossMenu = true }, + }, + catalogues = { -- The catalogues to the players see the vehicle and emplooyes change the vehicle on showrrom + { coords = vec3(-38.4983, -1099.9435), radius = 0.3, vehicleCoords = vec4(-42.7976, -1101.9343, 26.3023, 300.1392), vehicle = 'premier', vehicleColor = 54 }, + { coords = vec3(-40.7462, -1094.6582), radius = 0.3, vehicleCoords = vec4(-40.7462, -1094.6582, 26.2744, 290.8288), vehicle = 'mesa', vehicleColor = 0 }, + { coords = vec3(-47.2404, -1095.9189), radius = 0.3, vehicleCoords = vec4(-47.8146, -1091.7627, 27.3023, 184.0490), vehicle = 'vacca', vehicleColor = 73 }, + { coords = vec3(-51.2196, -1094.9263), radius = 0.3, vehicleCoords = vec4(-55.2371, -1097.4758, 27.3023, 308.8009), vehicle = 'cavalcade', vehicleColor = 4 }, + }, + categories = { -- The categories that will show on the catalogue and dashboard (need to add the shop with the job name to the vehicles.lua too on the shops field otherwise it'll not show the vehicles!!) + { label = 'Compacts', id = 'compacts' }, + { label = 'Sedans', id = 'sedans' }, + { label = 'SUVs', id = 'suvs' }, + { label = 'Coupes', id = 'coupes' }, + { label = 'Muscle', id = 'muscle' }, + }, + pickups = { + vec4(1201.35, -3187.03, 5.98, 175.35) + } +} \ No newline at end of file