Das Wäre meine Möglichkeit:
Code
public FVehicleSpawner(fV)
{
DeleteVehicle(fVehicle[fV][vehID]);
fVehicle[fV][vehID] = CreateVehicleEx(fVehicle[fV][modelid], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ], fVehicle[fV][vehPosA], fVehicle[fV][vehColor1], fVehicle[fV][vehColor2], -1, false, fVehicle[fV][vehSiren]);
fVehicleTuning(fV);
switch(GetVehicleModel(fV))
{
case 528:{SetVehicleHealth(fV, 5000);}
case 601:{SetVehicleHealth(fV, 5000);}
case 596:{SetVehicleHealth(fV, 1500);}
case 598:{SetVehicleHealth(fV, 1500);}
case 597:{SetVehicleHealth(fV, 1500);}
case 599:{SetVehicleHealth(fV, 1500);}
case 427:{SetVehicleHealth(fV, 4000);}
case 428:{SetVehicleHealth(fV, 4000);}
}
return 1;
}
Alles anzeigen
wen ich das fahrzeug neu parke spawnt es vollgetankt alles drum und drann..