Hi ya facepunch!! So, I’m working on this NPC car dealer just for my Darkrp server and I can’t seem to do it correctly I have this right here(bottom of page). This works if I want to create my own car from a jeep base witch I do but, I want to utilized the VC_ExtraSeats I would love to use the code I already have and just mod it if possible, if not how would I call directly on a TDM car if it’s on the list.set?
I understand this may seem like a noob question but, this is my first time trying anything like this in lua and this is the best way for me to learn I don’t just want the answer I want to research it myself so if some one could just point me the right way I will be off.
function SpawnCarBus(ply, ent) if not ( ply:Team() == TEAM_BUS ) then GAMEMODE:Notify(ply, 1, 4, "You need to be a bus driver!") return end if not ply:CanAfford(500) then Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "car")) return "" else ply:AddMoney(-500) local Bus = ents.Create("prop_vehicle_jeep") Bus:SetModel("models/tdmcars/bus.mdl") Bus:SetKeyValue("vehiclescript", "scripts/vehicles/tdmcars/bus.txt") Bus:SetPos(table.Random(CarBusSpawn)) Bus.Owner = Bus:Own(ply) Bus:Spawn() Bus:Activate() end end concommand.Add("buy_bus", SpawnCarBus)