[Release] Traffic | Sync Traffic Values

I’m a troll.

I just forgot to remove it from everything because I have a default template for scripts… Sigh… I again will amend the git.
Lol, cheers.

:kiss:

1 Like

this is good for 50slot players?

1 Like

I like your script but why you need a cron for every 5 minutes? Is it just SetTimeOut every 5 minutes ?

1 Like

I like crons, if you want a time out insead, roll with it babayyyyy.

Mostly I was testing few things cron related at the time and cbf changing it.

2 Likes

Love it. Do your script can stop car spawn on each other?

1 Like

It’s got an attempt to fix that inside of it, yes.

The remove cars from spawn radius around the client. This may or may not have issues when overlapping clients are calling it.
But from my tests so far it seems to have at least lowered the risk or chances of it happening.

2 Likes

If i start LosOce_Cron should i stop cron ? or remove it ?

1 Like

You can run both concurrently. Mine is just a rename with a slight alteration making it use 12 hour times.

Because the Events are different names, you should be able to run both simultaneously.

1 Like

Updated

Removed requirement of my cron.
Now runs every minute from client.
Will update soon with vehicle blacklist.

1 Like

Would this resource remove police vehicles from outside the pd ect.? :slight_smile:

1 Like

Yes, it should.

2 Likes

didnt work

1 Like

It does not disable the dispatch. In the config file it’s set to false.

1 Like

So the native being called is EnableDispatch.

If you had true there, what do you think will happen.

1 Like

Super slick informative post.

Add more information.

What didn’t work?

Did you play with any of the values?

1 Like

As I said in my first post. It’s set to false. No error on F8 or in the server console.

As I implied from my responses, you don’t get it.

False means no dispatch.

See the below from the Natives.
If you still have police, look into your other resources because this one does the trick.

-- 0xDC0F817884CDD856 0x0B710A51
-- ENABLE_DISPATCH_SERVICE
EnableDispatchService(
	dispatchService --[[ integer ]], 
	toggle --[[ boolean ]]
)
Directly from R*:  
enum eDispatchType : UINT16  
{  
    DT_PoliceAutomobile = 1,  
    DT_PoliceHelicopter = 2,  
    DT_FireDepartment = 3,  
    DT_SwatAutomobile = 4,  
    DT_AmbulanceDepartment = 5,  
    DT_PoliceRiders = 6,  
    DT_PoliceVehicleRequest = 7,  
    DT_PoliceRoadBlock = 8,  
    DT_PoliceAutomobileWaitPulledOver = 9,  
    DT_PoliceAutomobileWaitCruising = 10,  
    DT_Gangs = 11,  
    DT_SwatHelicopter = 12,  
    DT_PoliceBoat = 13,  
    DT_ArmyVehicle = 14,  
    DT_BikerBackup = 15  
};  
By making toggle false it disables the dispatch.  
curious if this is what they used when you toggled on and off cops in a GTA IV freemode you hosted. Sad they got rid of the option to make a private session without cops.  
Also on x360 seems with or without neverWanted on, setting these to all false in SP of course doesn't seem to work. I would understand getting stars, but cops are still dispatched and combat you.  

Thank you! I’ll check when I get back from work.

so now its didnt need the losice_cron ?

Everything works great! But for example if I pull over a car, kill the local, and then turn my back for a second, the car dissapears really fast. And, is there a way to disable the AI police radio?