07.01.2019, 11:35
There are a lot of repetition in your code, thats very bad coding.
You wanna avoid that.
Try to use seperate functions, instead of calling it directly every time.
Also dont use
for that stuff.
Because you know exatly the time when he get wanteds, so you can change the color there.
No need to check every ms 1000 times.
And the check in
is complete wrong.
That will not work.
It means you can enter every car and it will say you are in a police car.
You wanna avoid that.
Try to use seperate functions, instead of calling it directly every time.
Also dont use
PHP Code:
OnPlayerUpdate
Because you know exatly the time when he get wanteds, so you can change the color there.
No need to check every ms 1000 times.
And the check in
PHP Code:
OnPlayerEnterVehicle
That will not work.
It means you can enter every car and it will say you are in a police car.