RedM Natives

SET_VEHICLE_AS_NO_LONGER_NEEDED

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Hash0x629BFA74418D6239
Runtime nameSetVehicleAsNoLongerNeeded
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x629BFA74418D6239

Signature

void SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle* vehicle);

Parameters

NameTypeDescription
vehicleVehicle*—

Returns void

Description

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Usage

Lua
local vehicle = SetVehicleAsNoLongerNeeded(vehicle)

-- always works, by hash
local vehicle = Citizen.InvokeNative(0x629BFA74418D6239, Citizen.PointerValueIntInitialized(vehicle))
JavaScript and C#
JavaScript
const vehicle = SetVehicleAsNoLongerNeeded(vehicle);

// by hash
const vehicle = Citizen.invokeNative('0x629BFA74418D6239', Citizen.pointerValueIntInitialized(vehicle));
C#
var vehicle = new OutputArgument();
Function.Call((Hash)0x629BFA74418D6239, vehicle);
// vehicle.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.