Want to add a vehicle-pushing mechanic to your server? This script introduces a simple feature where players can physically push vehicles that are damaged or stuck.
When players are within a specified distance of a vehicle, a prompt appears if the vehicle meets all criteria for pushing.
Players can initiate the push by holding down specific keys (default SHIFT + E). The vehicle will move forward or backward based on the player’s position relative to the vehicle.
Disables specific controls (e.g., jump, attack) to ensure the player stays on the task while pushing.
I have a little suggestion for you, maybe you can add it to be able to use qb-target or ox-target in the script in config.lua when you want to push a vehicle and there is a configuration list of exceptions for vehicles that cannot be pushed alone which incidentally heavy and large vehicles in the category of trucks and buses which in real life require more than 1 person to be able to push them,
Hello, I wanted to ask how to get the script to work? I inserted it correctly and it doesn’t work for me. I also have ox_lib and everything else I need.
This is dope. It would be cool to have how many players it requires in the config.lua in order to push like in IRL 2 pushes the vehicle and 1 inside steering the wheel. Nice release