I want to disable certain cars when switching between buckets how can I do?

I want to disable some cars when switching between buckets. For example, no one will be able to use the rhino in bucket 0. But anyone can use the rhino in bucket 1. What code should I write to do this?

Hey, I won’t do an example code but you can do the following logic, create an event to listen the entities while is being created, then check in what routing bucket is the entity lays and do a condition, “if lays on routing bucket 0, cancel event otherwise let it to be created”. Of course, first of all, verify if that entity is a vehicle and then check if is a rhino (if you want a specific vehicle).

Can you write a suitable sample code for me to build logic?