@@ -12,14 +12,14 @@ namespace AltV.Net.Async
1212{
1313 public static partial class AltAsync
1414 {
15- public static Task < IVehicle > CreateVehicle ( uint model , Position pos , Rotation rot ) => AltVAsync . Schedule ( ( ) =>
16- Alt . Core . CreateVehicle ( model , pos , rot ) ) ;
15+ public static Task < IVehicle > CreateVehicle ( uint model , Position pos , Rotation rot , uint streamingDistance = 0 ) => AltVAsync . Schedule ( ( ) =>
16+ Alt . Core . CreateVehicle ( model , pos , rot , streamingDistance ) ) ;
1717
18- public static Task < IVehicle > CreateVehicle ( VehicleModel model , Position pos , Rotation rot ) =>
19- CreateVehicle ( ( uint ) model , pos , rot ) ;
18+ public static Task < IVehicle > CreateVehicle ( VehicleModel model , Position pos , Rotation rot , uint streamingDistance = 0 ) =>
19+ CreateVehicle ( ( uint ) model , pos , rot , streamingDistance ) ;
2020
21- public static Task < IVehicle > CreateVehicle ( string model , Position pos , Rotation rot ) =>
22- CreateVehicle ( Alt . Hash ( model ) , pos , rot ) ;
21+ public static Task < IVehicle > CreateVehicle ( string model , Position pos , Rotation rot , uint streamingDistance = 0 ) =>
22+ CreateVehicle ( Alt . Hash ( model ) , pos , rot , streamingDistance ) ;
2323
2424 [ Obsolete ( "Use AltAsync.CreateVehicle or Alt.CreateVehicle instead" ) ]
2525 public static IVehicleBuilder CreateVehicleBuilder ( uint model , Position pos , Rotation rot ) =>
0 commit comments