-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathAlt.Vehicle.cs
More file actions
18 lines (15 loc) · 753 Bytes
/
Alt.Vehicle.cs
File metadata and controls
18 lines (15 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using AltV.Net.Data;
using AltV.Net.Elements.Entities;
using AltV.Net.Enums;
namespace AltV.Net
{
public partial class Alt
{
public static IVehicle CreateVehicle(uint model, Position pos, Rotation rotation, uint streamingDistance = 0) =>
Core.CreateVehicle(model, pos, rotation, streamingDistance);
public static IVehicle CreateVehicle(VehicleModel model, Position pos, Rotation rotation, uint streamingDistance = 0) =>
Core.CreateVehicle((uint) model, pos, rotation, streamingDistance);
public static IVehicle CreateVehicle(string model, Position pos, Rotation rotation, uint streamingDistance = 0) =>
Core.CreateVehicle(Core.Hash(model), pos, rotation, streamingDistance);
}
}