Daytime Car Lights
#1

Hello guys, can you turn on the daytime car lights? I need the code, very thx friends...


I have this code but only turn on the lights at night:

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

if(newkeys == KEY_SUBMISSION)
{
if(IsPlayerInAnyVehicle(playerid))
		{
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
			{
                                new vehicleid, engine, lights, alarm, doors, bonnet, boot, objective;
				vehicleid = GetPlayerVehicleID(playerid);
				GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

				if(lights)
    {
             SetVehicleParamsEx(vehicleid, engine, false, alarm, doors, bonnet, boot, objective);
    }
    else
    {
     				SetVehicleParamsEx(vehicleid, engine, true, alarm, doors, bonnet, boot, objective);
    }
			}
			}
		return 1;
}
Reply


Messages In This Thread
Daytime Car Lights - by bookknp - 01.05.2018, 13:26
Re: Daytime Car Lights - by David (Sabljak) - 01.05.2018, 13:35
Re: Daytime Car Lights - by bookknp - 01.05.2018, 13:40
Re: Daytime Car Lights - by David (Sabljak) - 01.05.2018, 15:20
Re: Daytime Car Lights - by jasperschellekens - 01.05.2018, 16:27
Re: Daytime Car Lights - by bookknp - 01.05.2018, 17:52
Re: Daytime Car Lights - by bookknp - 02.05.2018, 14:39
Re: Daytime Car Lights - by jasperschellekens - 03.05.2018, 12:07
Re: Daytime Car Lights - by Sew_Sumi - 04.05.2018, 00:06
Re: Daytime Car Lights - by bookknp - 04.05.2018, 02:10

Forum Jump:


Users browsing this thread: 1 Guest(s)