Spawning A Vehicle

How can I spawn a vehicle at 0,0,0 of the map, the jeep, as if it had been spawned from the Q menu. I looked on the wiki and I cann’t find anything about making a vehicle. Thanks!

[lua]local jeep = ents.Create(“prop_vehicle_jeep”)
jeep:SetModel(“models/buggy.mdl”)
jeep:SetPos(Vector(0,0,0))
jeep:SetKeyValue(“vehiclescript”,“scripts/vehicles/jeep_test.txt”)
jeep:Spawn()
jeep:Activate()[/lua]

That, I believe.

That looks okay, but where does this point to? Is it a file in sandbox?
[lua]jeep:SetKeyValue(“vehiclescript”,“scripts/vehicles/jeep_test.txt”)[/lua]

Nevermind, I got it working.
Thanks!

Im working on a Battlefield like gamemode using some coding from green shift and i cant seem to get this to work myself here is what i got.


local jeep = ents.Create("prop_vehicle_jeep")
    ent:SetKeyValue( "vehiclescript", "scripts/vehicles/jeep_test.txt" )
    ent:SetModel( "models/buggy.mdl" )
    ent:SetAngles(Ang)
    ent:SetName("Jeep")
    ent:SetPos( Vector(-790,-3743,64))
    ent:Spawn()
    ent:Activate()
    end
end

EDIT:

Nevermind got it, just kinda new to lua still learning.