if(PRESSED(KEY_ACTION) && PRESSED(KEY_SUBMISSION))
{
new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(GetPVarInt(playerid, "Lights") == 1)
{
SetVehicleParamsEx(vehicleid, 1, 0, alarm, doors, bonnet, boot, objective);
DeletePVar(playerid, "Lights");
}
else {
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
SetPVarInt(playerid, "Lights", 1);
}
}