31.07.2010, 08:09
Hello, I would like to have a small explanation about how you reapply the SetVehicleParamsForPlayer function in OnVehicleStreamIn and why you need to do it.
new myMarkedCar;
public OnGameModeInit() //Or another callback
{
myMarkedCar = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 0,0, -1); //For example: Black Landstalker near Blueberry Acres
return 1;
}
//Whatever your want
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == myMarkedCar)
{
SetVehicleParamsForPlayer(TmyMarkedCar, forplayerid, 1, 0); // marker can be visible only if the vehicle streamed for player
}
return 1;
}