SetVehicleParamsForPlayer
#1

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.
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
For both:

pawn Код:
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;
}
Reply
#3

So if I am using a variable to check if the vehcle is locked I need to put CarInfo[i][cLocked] instead of the 0?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)