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”)
That, I believe.
That looks okay, but where does this point to? Is it a file in sandbox?
Nevermind, I got it working.
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
Nevermind got it, just kinda new to lua still learning.