EntityClient

setVehicleAsNoLongerNeeded

SET_VEHICLE_AS_NO_LONGER_NEEDED0x629BFA74418D6239

The GTA V native SET_VEHICLE_AS_NO_LONGER_NEEDED of the ENTITY namespace, as LS:MP client scripts call it: the global function setVehicleAsNoLongerNeeded, in JavaScript and in Lua.

SignatureJavaScript
setVehicleAsNoLongerNeeded(vehicle: Vehicle): void
SignatureLua
setVehicleAsNoLongerNeeded(vehicle: Vehicle)
⚠
Known issue

The value of vehicle does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
setVehicleAsNoLongerNeeded(vehicle);
Lua
setVehicleAsNoLongerNeeded(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

This is an alias of setEntityAsNoLongerNeeded.

Reference

Namespace
Entity ENTITY
In the game
void SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle* vehicle)
Hash
0x629BFA74418D6239

Open in the interactive natives reference