Hello, I would like to know if it's possible to spawn a specific vehicle from lua ? for exemple spawnVehicle("vehicles/pickup") Thanks !
Yes, it is possible. Examples: Code: core_vehicles.spawnNewVehicle("pickup",{}) core_vehicles.spawnNewVehicle("pickup", {config = 'vehicles/pickup/cool.pc'}) core_vehicles.spawnNewVehicle("pickup", {color = {0.5,0.5,0,1}}) core_vehicles.spawnNewVehicle("pickup", {color = {0.5,0.5,0,1},color2 = {0.5,0,0.5,1}}) core_vehicles.spawnNewVehicle("pickup", {config = 'vehicles/pickup/cool.pc',color = {0.5,0,0.5,1},color2 = {0.5,0.5,0.5,1}}) So it's spawnNewVehicle(jbeam_name,options) where jbeam_name is a string and options is an array. For valid stuff to put in the array take a look at the "sanitizeOptions" function in this file: Steam\SteamApps\common\BeamNG.drive\lua\ge\extensions\core\vehicles.lua