[HELP] Change license plate letters of every vehicle near me

How can I detect every vehicle near me? To change their license plate letters. So everyone can see that license plate.

Look up the native.
FindFirstVehicle

It has a few similar natives that begin with find.
You want to probably use a repeat untill loop within a radius around your ped.

Add them to a table when found.
Alter the plates from there.

Examples could be found in the old esx client functions lua.

So no way to detect each new vehicle to enter the player’s bubble of visibility?

I see sometimes cars approaching in the distance, then they disappear, and don’t turn into a real car. I want to detect all vehicles as they cross that line from fake car to real car. Is there a way to do just that?

Update your atifacts.

Unrelated in this case; ‘density multiplier’ natives will have the same issue if lowered too much.

There’s a server event for this, but only with OneSync enabled, since that’s the only way to have server awareness exist.

On the client, you’re probably going to have to iterate stuff.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.