SA-MP Forums Archive
Lock train passenger cars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lock train passenger cars (/showthread.php?tid=154351)



Lock train passenger cars - nicke157 - 13.06.2010

I know that I should use SetVehicleParamsForPlayer and get it works on the train locomotive.

The passenger cars get the vehicle id after the locomotive. For example:
Locomotive = ID 1
Passenger car 1 = ID 2
Passenger car 2 = ID 3
Passeng............

Then I use this code to lock car passenger car 1:
Код:
SetVehicleParamsForPlayer(2,playerid,0,1);
But I can't get it work on the passenger cars. Why?