DC Traffic Plugin
This plugin monitors server traffic, with upcoming features planned for implementation. Currently, it detects stuck NPC traffic. The script assesses all vehicles near players for any instances of being stuck. If a vehicle remains stationary for the configured duration in the settings, both the vehicle and its driver are removed from the game.
In RedM, a native function that returns a boolean indicating whether a horse (entity) is moving can sometimes return false when the horse is walking backwards, leading to instances of stuck traffic not being removed from the map. To address this, the plugin circumvents the issue by logging all stationary traffic and determining it from the vehicles' velocity instead. Once a vehicle is logged as stationary, it has a set duration to resume movement. Failure to do so within the monitoring period results in the removal of both the vehicle and its driver.
Dependency
This plugin depends on its own API you can get via this link.
This plugin has no further dependencies and is able to run
over any framework.
Discord
You can contact us via our Discord!