[FREE] Vehicle Push Script

Vehicle Push Script

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.

:free: Download for free on GitHub

:star: Check out our other resources on gamzkystore.com

Preview

Key features

  • Framework independent: Works independently without requiring any specific framework. Only requires ox_lib.
  • Vehicle condition checks: Allows pushing only when the vehicle’s engine health is below a configurable threshold.
  • Easily configurable: Configurable options allow setting push keys, animation, and vehicle conditions.

How It Works

  1. When players are within a specified distance of a vehicle, a prompt appears if the vehicle meets all criteria for pushing.
  2. 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.
  3. Disables specific controls (e.g., jump, attack) to ensure the player stays on the task while pushing.
7 Likes

awesome!!

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,

I am very grateful.

1 Like

can push via target like ox_target?

1 Like

@idpcks @yisheng_110108 I have just implemented this feature. If you download the latest version from GitHub it should work.

2 Likes

does the script sync with all player?

Yes, it syncs with all players

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.

Could you add that if the player has health <100 don’t allow him to push the vehicle?

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

1 Like

its not working with qb-targed sadly