How to spawn addon vehicles [C# Script Hook V .NET]?
-
How can I spawn vehicles in C#?
I want to put a addon model in place of the VehicleHash
Vehicle e200 = World.CreateVehicle( VehicleHash,Game.Player.Character.GetOffsetInWorldCoords(new Vector3(0, 5, 0)));
-
Use a string of the model name. So if the model is E200, you would write:
Vehicle e200 = World.CreateVehicle("E200", Game.Player.Character.GetOffsetInWorldCoords(new Vector3(0f, 5f, 0f)));