Push Vehicle
This module allows players to push vehicles with immersive mechanics and physics-aware behavior.
Features
Target-based interaction for pushable vehicles
Push speed adjusts based on slope (uphill = slower, downhill = faster)
Ragdoll "slip" effect on steep inclines
Prevents pushing if:
Vehicle engine or fuel is too high
Vehicle is in use, flipped, or being pushed
Steering while pushing (
A
/D
)Vehicle class blacklist (e.g., aircraft, heavy trucks)
Installation
To properly install this a couple steps are required
How It Works
Adds interaction targets to all vehicle models on resource start
canPush
runs checks on:Vehicle health, fuel, class
Driver presence or attachment
Player state (e.g., dead/downed)
When pushing:
Player is attached to the vehicle front/back
Animation plays
Vehicle is pushed with speed adjusted by slope angle
Raycast checks for obstruction or unsafe terrain (causes fall)
Pushing ends if:
E
is pressedVehicle is driven or started
Player ragdolls or goes airborne
Pitch exceeds ±30°
Notes
Enable
debugMode
to visualize raycasts and pitch/speed infoFully configurable via
Config.VehiclePush
Supports QBCore/QBox for
isDead
/isDown
player state checks
Last updated