SA-MP Forums Archive
How to turn on the lights? - 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: How to turn on the lights? (/showthread.php?tid=194500)



How to turn on the lights? - New_Player[USW] - 29.11.2010

Anyone can please help me for the car lights turning off and on? thanks.


Re: How to turn on the lights? - scottyishere - 29.11.2010

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);

SetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective); // To set lights on

SetVehicleParamsEx(vehicleid,engine,0,alarm,doors,bonnet,boot,objective); // To set lights off