Police lights code NEEDING HELP!

im needing help so if you can send any links or any help at all thanks! ;D

Could you please be more specific with what you are trying to make? Police lights, do you mean on a car? Spawnable? Also, post your code otherwise we will have no idea how to help you.

I wonder if this is what he’s looking for: ?

Although, that’s an old video. It takes a bit of code for patterns, attachments, lights to work with attachments, etc etc.

sickness cars has a code i will show here now


local V = { 	
				// Required information
				Name = "GTA4 Ambulance", 
				Class = "prop_vehicle_jeep",
				Category = Category,

				// Optional information
				Author = "SgtSgt, Rockstar Games",
				Information = "GTA4 Ambulance",
				Model = "models/sickness/meatwagon.mdl",
				SeatType = "jeep_seat",
				
				Horn = {Sound = "ambulance_siren.mp3", Pitch = 90},
				Customexits = { Vector(-90,36,22), Vector(82,36,22), Vector(22,24,90) ,Vector(2,100,30) },
				ModView = { FirstPerson = Vector(4,0,2) },
				//Vehicle Controller
			VC_Lights = { //Pos can be a simple Vector() relative to the vehicle or an attachment name, else is self explanatory, can be an infinite amount of these.
						{Pos = Vector(35.5, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 1, DynLight = true, NormalColor = "255 0 0", BrakeColor = "255 0 0"},
						{Pos = Vector(29, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 1, DynLight = true, NormalColor = "255 0 0", BrakeColor = "255 0 0", ReverseColor = "255 255 255"},
						{Pos = Vector(-35.5, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 1, DynLight = true, NormalColor = "255 0 0", BrakeColor = "255 0 0"},
						{Pos = Vector(-29, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 1, DynLight = true, NormalColor = "255 0 0", BrakeColor = "255 0 0", ReverseColor = "255 255 255"},
						{Pos = Vector(34.5, 114.9, 43.6), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, NormalColor = "255 255 255"},
						{Pos = Vector(-34.5, 114.9, 43.6), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, NormalColor = "255 255 255"},
						{Pos = Vector(25.5, 114.9, 43.6), Size = 1, GlowSize = 1, HeadLightAngle = Angle(5, 95, 0)},
						{Pos = Vector(-25.5, 114.9, 43.6), Size = 1, GlowSize = 1, HeadLightAngle = Angle(5, 85, 0)},
						{Pos = Vector(40, 114.9, 43.6), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"},
						{Pos = Vector(-40, 114.9, 43.6), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"},
						{Pos = Vector(40, 114.9, 43.6), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"},
						{Pos = Vector(-40, 114.9, 37), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"},
						{Pos = Vector(41.5, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"},
						{Pos = Vector(-41.5, -144, 22), Mat = "sprites/glow1.vmt", Alpha = 180, Size = 0.8, DynLight = true, BlinkersColor = "255 80 0"}
						
						},
			VC_Siren = {
						Sound = "vehicles/vc_police_short.wav", //Siren sound.
						Pitch = 100, //Siren sound pitch.
						AffectNPCs = true, //NPC's hearing the siren become agitated.
						Color = "240 0 10", //Color - Red, Green, Blue.
						Size = 4, //Effect size, effects flicker rate.
						Rate = 0.01, //Flicker rate, not in seconds.
						DynLightPos = Vector(0, -144, 101), //Dynamic lights pos, relative to the vehicle, simple Vector() or an attachment name string.
						DecalMat = "sprites/light_glow02.spr", //Decal sprite material.
						Decals = { //Can be infinite amount.
								Vector(40, -144, 101), //Decal pos, relative to the vehicle, or an attachment name string.
								Vector(31, -144, 101),
								Vector(21, -144, 101),
								Vector(11, -144, 101),
								Vector(0, -144, 101),  
								Vector(-11, -144, 101),
								Vector(-21, -144, 101),
								Vector(-31, -144, 101),
								Vector(-40, -144, 101),
								Vector(38, -144, 94),
								Vector(-38, -144, 94),
								Vector(-49, 2, 92),
								Vector(-49, -130.5, 92),
								Vector(49, 2, 92),
								Vector(49, -130.5, 92),
								Vector(-21, 36, 90),
								Vector(-7, 44, 90),
								Vector(7, 44, 90),
								Vector(21, 36, 90),
								Vector(-14, 116.9, 44),
								Vector(14, 116.9, 44)

								}
	end
end
						
						},
				
				KeyValues = {
								vehiclescript	=	"scripts/vehicles/meatwagon.txt"
							}
			}

list.Set( "Vehicles", "GTA4 Ambulance", V )

thats a basic vehicle for a ambulance!



yes this is what im looking for a bit but a gmod 13 updated one because i can clearly see perp has cop cars that have nice lights!

You should put code inside ’


' tags

Hellzone has a license to run my lighting system so that’s why they have nice lights!

do you know if i could get like a cop car that has light yes or no?