Run code from Tick

Hi everybody please i need help with run code from tick. This i have in Tick:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (Neons)
    {
	Ped ped;

        Vehicle vehicle;

        f32 vx, vy, vz;

        GetPlayerChar(GetPlayer(), &ped);

        GetCarCharIsUsing(ped, &vehicle);

        GetCarCoordinates(vehicle, &vx, &vy, &vz);

        DrawLightWithRange(vx, vy, vz, 255, 0, 0, 10.f, 10.f);
	}

Neons i have declared in bool as bool Neons = false
Please i need some code for run it, i tried so many ways, but it doesnt worked...
i need help with run code from tick
Sorry, it may just be me, but what do you mean? Could you elaborate?
i need some for run Neons from Tick
What is tick?
Tick is piece of code, where you can write somethink what if you run it, i will be started systematically
Topic archived. No new replies allowed.