I found a car salesman npc and i modified it but it seems that my modified version and the original, after spawning a car the car doesnt work with VC mod (adds lights, extra seats, etc…)
This is the function where it buys the actual vehicle
function SpawnCarCamaro(ply, ent) if not ply:CanAfford(250000) then Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "car")) return "" else ply:AddMoney(-250000) local Cam = ents.Create("prop_vehicle_jeep") Cam:SetModel("models/tdmcars/69camaro.mdl") Cam:SetKeyValue("vehiclescript", "scripts/vehicles/tdmcars/69camaro.txt") Cam:SetPos(table.Random(CamaroSpawn)) Cam.Owner = ply Cam:Own(ply) Cam:Spawn() Cam:Activate() end end concommand.Add("buy_69camaro", SpawnCarCamaro)
I think its not including the lua file for this car that actually adds the seats and lights and stuff.
I’ve looked around on the wiki and looks the this page
I just dont really know what to do, i dont know if this can help me.
Any help is well appreciated,