You can use trigger zones to spawn vehicles. Buggered if I know how mind, but it is possible. Ask in the programming forum, someone is bound to know.
Lua trigger like this changes the player car to your desired config, in this case to the Drag Roamer. Known issues: If an AI vehicle drives in to the trigger, the player car turns to a drag roamer. If you step out of the vehicle (F) and roll into the trigger, the rollerdude turns into a drag roamer. Code is based on the hidden car lua from @DuneWulff's Wide Open map. Spoiler: Original code bits Code: ---------------- local function teleportPlayer(data) local vehicleName = data.subjectName if data.event == 'enter' then ui_message("A hidden vehicle is nearby!", 8, "", "publish") end end return teleportPlayer -------------------- local function myFunc() core_vehicles.replaceVehicle("autobello", {config="oddball", color="0.6 0.45 0.35 1.3"}) ui_message("You discovered the Oddball!", 8, "", "publish") end return myFunc -------------------- local function myFunc() core_vehicles.replaceVehicle("van", {config="ambulance2"}) ui_message("You discovered the Scrambulance!", 8, "", "publish") end return myFunc -------------------
Thanks for sharing. Ive been adding in hidden abandon cars throughout my map as a sort of scavenger hunt. Code like this might make it a bit more interesting.