Im trying to get the lua file for the jeep to make it spawn from my NPC.
This is the code for the npc:
function BuyJeepLeft(ply, ent) if not ply:CanAfford(5000) then Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "Jeep")) return "" else ply:AddMoney(-5000) local jeep = ents.Create("prop_vehicle_jeep") jeep:SetPos( -1136.552368, 2145.427246, 68) jeep.dt.owning_ent = ply jeep:Spawn() end end concommand.Add("buy_jeepleft", BuyJeepLeft)
What is the name of the Jeep that I could use to spawn it?
local jeep = ents.Create(“prop_vehicle_jeep”) << This doesn’t spawn a jeep.