Request model before creating vehicle

This commit is contained in:
Sardelka 2022-07-09 11:21:42 +08:00
parent 16fe2fe1ab
commit 0224abc9bd

View File

@ -49,7 +49,9 @@ namespace RageCoop.Client.Scripting
private void CreateVehicle(CustomEventReceivedArgs e)
{
var veh = World.CreateVehicle((Model)e.Args[1], (Vector3)e.Args[2], (float)e.Args[3]);
var vehicleModel = (Model)e.Args[1];
vehicleModel.Request(1000);
var veh = World.CreateVehicle(vehicleModel, (Vector3)e.Args[2], (float)e.Args[3]);
veh.CanPretendOccupants=false;
var v = new SyncedVehicle()
{