Log in to reply
 

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)));
    

Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.