πdealer setup
Overview
2
3
4
Configure NUI Catalog (Optional)
createNUI = {
target = {
coords = vec3(0.0, 0.0, 0.0), -- Where player interacts
size = vec3(1.0, 1.0, 1.0),
rotation = vec3(0.0, 0.0, 0.0),
debug = true,
distance = 2.5,
},
camera = {
coords = vec3(0.0, 0.0, 0.0), -- Camera position
rotation = vec3(-30.0, 0.0, 180.0), -- Pitch, Roll, Yaw
fov = 90.0
},
vehicle = {
coords = vec3(0.0, 0.0, 0.0), -- Vehicle spawn position
heading = 0.0,
RandomTuning = true,
TestDrive = {
-- Test drive config
},
buyResult = {
coords = vec3(0.0, 0.0, 0.0), -- Where purchased car spawns
heading = 0.0,
},
}
},5
Configure Test Drive
TestDrive = {
enable = true,
coords = vec3(0.0, 0.0, 0.0), -- Test drive start position
heading = 160.0,
duration = 120, -- Seconds
cost = 500, -- Price to test drive
costPerNotReturnVehicle = 1000, -- Penalty per 10 seconds
returnvehZone = {
coords = vec3(0.0, 0.0, 0.0), -- Return zone center
size = vec3(5.0, 5.0, 5.0),
rotation = 0.0,
debug = true,
}
},6
Configure DUI Showroom
Option A: Replace Existing Texture
showRoom = {
enable = true,
dui = {
type = "replace",
replace = {
prop = "int_luxshowroom_screens_banners",
texture = "luxshowroomscreen2"
},
resolution = {
width = 2440,
height = 1440
},
interactions = {
{
target = {
coords = vec3(0.0, 0.0, 0.0),
size = vec3(1.0, 1.0, 1.0),
rotation = vec3(0.0, 0.0, 0.0),
debug = true,
distance = 2.5,
},
camera = {
coords = vec3(0.0, 0.0, 0.0),
rotation = vec3(0.0, 0.0, 0.0),
fov = 20.0
}
},
}
},
carSpawn = {
removeVehTime = 50,
carOptions = {
coords = vec3(0.0, 0.0, 0.0),
heading = 120.0,
canTuning = true,
randomTuning = true,
}
}
}Option B: Spawn TV Prop
showRoom = {
enable = true,
dui = {
type = "prop",
resolution = {
width = 2440,
height = 1440
},
objects = {
{
prop = "prop_tv_flat_03b",
coords = vec3(0.0, 0.0, 0.0),
rotation = vec3(-20.0, 0.0, 120.0),
replace = {
prop = "prop_tv_flat_03b",
texture = "script_rt_tvscreen"
}
},
},
interactions = {
-- Same as above
},
},
carSpawn = {
-- Same as above
}
}7
8
Configure Other Place Showroom (Optional)
carSpawn = {
otherPlace = {
exitInteraction = {
coords = vec3(-1072.8, -62.5, -99.0),
size = vec3(1.0, 1.0, 1.0),
rotation = vec3(0.0, 0.0, 0.0),
debug = false,
distance = 2.5,
},
spawnCoords = vec3(-1072.8, -62.5, -99.0),
},
carOptions = {
coords = vec3(-1071.9, -74.5, -99.0),
heading = 120.0,
canTuning = true,
randomTuning = true,
}
}