Problem with doing Photon headlights, blinkers etc.

Hi Guys,
I think that this is good section for this type of problem. I am trying to do by myself car with Photon lightning system. I want to make civil car without ELS.
Only headlights, blinkers, reverse and brake lights. Anyone knows or maybe done that? I was searching everywhere and also trying to do something by myself but i think i am to fresh at programming.
It would be awesome if someone would help me.
Thank you

EDIT:
This is the code that i have done. Do you know where is the problem?


AddCSLuaFile()

EMV_DEBUG = false

local name = "BMW M3 E92"

local A = "AMBER"
local R = "RED"
local DR = "D_RED"
local B = "BLUE"
local W = "WHITE"
local CW = "C_WHITE"
local SW = "S_WHITE"

local EMV = {}

EMV.Siren = 1

EMV.Color = Color(255,255,255)
EMV.Skin = 0

EMV.BodyGroups = {
	{ 0, 0 }, -- BMW
	{ 1, 0 }, -- M3
	{ 2, 0 }, -- e92
	{ 3, 1 }, -- front bumper
	{ 4, 0 }, -- wing
	{ 5, 0 }, -- wheel
}

EMV.Props = {
	
}

EMV.Meta = {
	headlight = {
		AngleOffset = -90,
		W = 4,
		H = 4,
		Sprite = "sprites/emv/light_circle",
		Scale = 3,
		VisRadius = 0
	},

}

EMV.Positions = {
[1] = { Vector( -30.5, 104, 37 ), Angle( 0, 0, 0 ), "headlight" },
[2] = { Vector( 30.5, 104, 37 ), Angle( 0, 0, 0 ), "headlight" },
	
}



EMV.Sections = {
	["headlights"] = {
		{ { 19, SW, { 16, .5, 10 } }, { 20, SW, { 16, .5, 0 } }, }
	}
}

EMV.Patterns = {
	["headlights"] = {
		["wig-wag"] = {
			1
		},
	},
}


EMV.Sequences = {
	Sequences = {
		
		{ Name = "CODE 1", Stage = "M1", Components = {}, Disconnect = {} },
		{ Name = "CODE 2", Stage = "M2", Components = {}, Disconnect = {} },
		{ Name = "CODE 3", Stage = "M3", Components = {}, Disconnect = {} }
	},
	
	Traffic = {
		{ Name = "LEFT", Stage = "L", Components = {}, Disconnect = {} },
		{ Name = "DIVERGE", Stage = "D", Components = {}, Disconnect = {} },
		{ Name = "RIGHT", Stage = "R", Components = {}, Disconnect = {} }
	}
			
		
	}


local PI = {}


PI.Meta = {
tail_light = {
		AngleOffset = -90,
		W = 10,
		H = 15,
		Sprite = "sprites/emv/emv_lightglow",
		Scale = 1.6,
		WMult = 1,
		VisRadius = 0
	},

	headlight = {
		AngleOffset = -90,
		W = 13,
		H = 11,
		Sprite = "sprites/emv/square_src",
		Scale = 1.6,
		VisRadius = 0
	},

	reverse_lights = {
		AngleOffset = -90,
		W = 6,
		H = 6,
		Sprite = "sprites/emv/emv_lightglow",
		Scale = 1.3,
		WMult = 1,
		VisRadius = 0
	},
	runninglight = {
		AngleOffset = -90,
		W = 15,
		H = 15,
		Sprite = "sprites/emv/emv_lightglow",
		Scale = 1.6,
		WMult = 1.5,
		VisRadius = 0
	},
	grill_light = {
		AngleOffset = -90,
		W = 2,
		H = 2,
		Sprite = "sprites/emv/emv_whelen_src",
		Scale = 0.4,
		WMult = 1,
		VisRadius = 0
	},
		reverse_light2 = {
		AngleOffset = 90,
		W = 8,
		H = 8,
		Sprite = "sprites/emv/emv_lightglow",
		Scale = 1.5,
		WMult = 1.5,
		VisRadius = 0
	},
	
}

PI.Positions = {
	[1] = { Vector(-42.9, -125, 59.4), Angle(0,160,5), "tail_light" },
	[2] = { Vector(42.9, -125, 59.4), Angle(0,-160,5), "tail_light" },
	
	[9] = { Vector(-42.9, -125.3, 51), Angle(0,160,-1), "tail_light" },
	[10] = { Vector(42.9, -125.3, 51), Angle(0,-160,-1), "tail_light" },
	 
	[3] = { Vector(-42.9, -125, 55.2), Angle(0,160,1), "reverse_lights" },
	[4] = { Vector(42.9, -125, 55.2), Angle(0,-160,1), "reverse_lights" },
	
	[14] = { Vector(-2.8, -35.6, 92.4), Angle(0,-0,-20), "reverse_light2" },
	[15] = { Vector(2.8, -35.6, 92.4), Angle(0,-0,-20), "reverse_light2" },
	
	[5] = { Vector(-35.5, 120.5, 48.5), Angle(0,35,10), "headlight" },
	[6] = { Vector(35.4, 120.5, 48.5), Angle(0,-35,10),"headlight" },
	 
	[7] = { Vector(-33, 125.8, 42), Angle(0,35,5), "runninglight" },
	[8] = { Vector(33, 125.8, 42), Angle(0,-35,5), "runninglight" },
	
	 [11] = { Vector(0, 132.3, 53.1), Angle(0,0,1), "grill_light" },
	 [12] = { Vector(-11.7, 131.5, 53.1), Angle(0,10,10), "grill_light" },
	 [13] = { Vector(11.8, 131.5, 53.1), Angle(0,-10,10), "grill_light" },

}

PI.States = {}

PI.States.Headlights = {}
PI.States.Brakes = {
{ 1, DR, 1 }, { 2, DR, 1 }, {9,DR},{10,DR},
}
PI.States.Blink_Left = {
{7,A},{1,DR},{9,DR},
}
PI.States.Blink_Right = {
{8,A},{2,DR},{10,DR},
}
PI.States.Reverse = {
{ 3, SW }, { 4, SW },{14,SW},{15,SW},
}
PI.States.Running = {
{ 1, DR, .25 }, { 2, DR, .25 },
	{9,DR,.25},{10,DR,.2},
	{11,W},{12,W},{13,W},
	}

local V = {
				// Required information
				Name = VehicleName,
				Class = "prop_vehicle_jeep",
				Category = "TDM Cars with Lights",

				// Optional information
				Author = "ShreQ",
				Information = "vroom vroom",
				Model =	"models/tdmcars/bmwm3e92.mdl",

			
				KeyValues = {				
						vehiclescript =	"scripts/vehicles/TDMCars/bmwm3e92.txt"
					    },
				IsEMV = true,
				EMV = EMV,
				HasPhoton = true,
				Photon = PI

}

list.Set( "Vehicles", VehicleName, V)

if EMVU then EMVU:OverwriteIndex(VehicleName, EMV ) end
if Photon then Photon:OverwriteIndex(VehicleName, PI ) end