Vehicle vehicle = World.CreateVehicle(VehicleHash.Zentorno, + * 3.0f, + 90) Private void OnKeyUp(object sender, KeyEventArgs e) Private void OnKeyDown(object sender, KeyEventArgs e) Private void OnTick(object sender, EventArgs e) Note: This script is against SHVDN v3 API. Code exampleīelow you can find a basic sample mod that creates a vehicle in front of the own character perfectly heading 90° to the character to get on the car like a sir when pressing Numpad1. You may also want to set up a post build event in Visual Studio to copy the compiled DLL to your scripts folder automatically.
0 Comments
Leave a Reply. |