VehicleClient

getLastShuntVehicle

GET_LAST_SHUNT_VEHICLE0x04F2FA6E234162F7

The GTA V native GET_LAST_SHUNT_VEHICLE of the VEHICLE namespace, as LS:MP client scripts call it: the global function getLastShuntVehicle, in JavaScript and in Lua.

SignatureJavaScript
getLastShuntVehicle(vehicle: Vehicle): Vehicle
SignatureLua
getLastShuntVehicle(vehicle: Vehicle): Vehicle

Usage

JavaScript
const result = getLastShuntVehicle(vehicle);
Lua
local result = getLastShuntVehicle(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

Vehicle JavaScript number, Lua integer

Game handle of a vehicle. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns last vehicle that was rammed by the given vehicle using the shunt boost.

Reference

Namespace
Vehicle VEHICLE
In the game
Vehicle GET_LAST_SHUNT_VEHICLE(Vehicle vehicle)
Hash
0x04F2FA6E234162F7
Introduced
Game build 1604 legacy numbering
Formerly
_GET_LAST_RAMMED_VEHICLE

Open in the interactive natives reference