Jump to content

[HELP] Disabling street lights


delta1337

Recommended Posts

Hello, i tried to remove street lights using code down below, but it doesnt work, i know you can apply invisible texture on it, but then you dont have vehicle lights etc, so i want to remove it from entire map, but i want to keep the corona texture

removeWorldModel (corona, 10000, 0, 0, 0)

https://imgur.com/a/81EzO3C

Link to comment
function removeLightsOff()
	for i1 = 4212, 4222 do
		removeWorldModel(i1, 10000, 0, 0, 0);
	end
	for i2 = 4715, 4717 do
		removeWorldModel(i2, 10000, 0, 0, 0);
	end
	for i3 = 4720, 4725 do
		removeWorldModel(i3, 10000, 0, 0, 0);
	end
	for i4 = 4739, 4752 do
		removeWorldModel(i4, 10000, 0, 0, 0);
	end
	for i5 = 5057, 5059 do
		removeWorldModel(i5, 10000, 0, 0, 0);
	end
	for i6 = 5661, 5665 do
		removeWorldModel(i6, 10000, 0, 0, 0);
	end
	for i7 = 5990, 5992 do
		removeWorldModel(i7, 10000, 0, 0, 0);
	end
	for i8 = 6192, 6196 do
		removeWorldModel(i8, 10000, 0, 0, 0);
	end
	for i9 = 7072, 7097 do
		removeWorldModel(i9, 10000, 0, 0, 0);
	end
	for j1 = 7206, 7208 do
		removeWorldModel(j1, 10000, 0, 0, 0);
	end
	for j2 = 7221, 7226 do
		removeWorldModel(j2, 10000, 0, 0, 0);
	end
	for j3 = 7280, 7280 do
		removeWorldModel(j3, 10000, 0, 0, 0);
	end
	for j4 = 7331, 7333 do
		removeWorldModel(j4, 10000, 0, 0, 0);
	end
	for j5 = 7892, 7892 do
		removeWorldModel(j5, 10000, 0, 0, 0);
	end
	for j6 = 7942, 7944 do
		removeWorldModel(j6, 10000, 0, 0, 0);
	end
	for j7 = 8372, 8372 do
		removeWorldModel(j7, 10000, 0, 0, 0);
	end
	for j8 = 9088, 9089 do
		removeWorldModel(j8, 10000, 0, 0, 0);
	end
	for j9 = 9121, 9129 do
		removeWorldModel(j9, 10000, 0, 0, 0);
	end
	for k1 = 9154, 9159 do
		removeWorldModel(k1, 10000, 0, 0, 0);
	end
	for k2 = 9277, 9283 do
		removeWorldModel(k2, 10000, 0, 0, 0);
	end
	for k3 = 9285, 9286 do
		removeWorldModel(k3, 10000, 0, 0, 0);
	end
	for k4 = 9885, 9886 do
		removeWorldModel(k4, 10000, 0, 0, 0);
	end
	for k5 = 9932, 9934 do
		removeWorldModel(k5, 10000, 0, 0, 0);
	end
	for k6 = 10057, 10058 do
		removeWorldModel(k6, 10000, 0, 0, 0);
	end
	for k7 = 10146, 10147 do
		removeWorldModel(k7, 10000, 0, 0, 0);
	end
	for k8 = 11410, 11412 do
		removeWorldModel(k8, 10000, 0, 0, 0);
	end
	for k9 = 13461, 13461 do
		removeWorldModel(k9, 10000, 0, 0, 0);
	end
	for t1 = 13461, 13461 do
		removeWorldModel(t1, 10000, 0, 0, 0);
	end
	for t2 = 13484, 13485 do
		removeWorldModel(t2, 10000, 0, 0, 0);
	end
	for t3 = 13493, 13493 do
		removeWorldModel(t3, 10000, 0, 0, 0);
	end
	for t4 = 17954, 17957 do
		removeWorldModel(t4, 10000, 0, 0, 0);
	end
end

removeLightsOff();

try this

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...