Vehicle Lights
#1

Yo,

I simply have a lights error, I have a dialog whenever anyone enters any car (player owned or not) and its gives the players a few options, Engine, Idle, Lights, Boot, Bonnet etc.

When I click 'Lights', The textdraw confirms that the script is working however the vehicle lights do not turn on, I have even tried a lights FS, That FS works but only works as indicators, A for left and D for right etc.

I cannot leave the vehicle lights on, Here's the code:

Код:
switch(VehicleInfo[GetPlayerVehicleID(playerid)][vLights])
					         {
			    	             case 1:
				    	         {
				        	         CarLights(GetPlayerVehicleID(playerid),2);
				        	         GameTextForPlayer(playerid, "~w~Lights~n~~r~Off", 4000, 3);
				    	         }
				   	             case 2:
				   	             {
				        	         CarLights(GetPlayerVehicleID(playerid),1);
				        	         GameTextForPlayer(playerid, "~w~Lights~n~~g~On", 4000, 3);
				    	         }
Reply


Messages In This Thread
Vehicle Lights - by McBan - 25.01.2014, 14:57
Re: Vehicle Lights - by Sawalha - 25.01.2014, 15:02
Re: Vehicle Lights - by McBan - 25.01.2014, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)