The Lab
ENTITY native

SET_VEHICLE_AS_NO_LONGER_NEEDED

returns void1 parambuild 1207

Releases the vehicle so the game can clean it up when appropriate.

Signature

C
void SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle* vehicle); // 0x629BFA74418D6239 b1207

Parameters

#NameType
1vehicleVehicle* (out pointer)

Facts

Facts about SET_VEHICLE_AS_NO_LONGER_NEEDED
Name
SET_VEHICLE_AS_NO_LONGER_NEEDED
Hash
0x629BFA74418D6239
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local vehicle = Citizen.InvokeNative(0x629BFA74418D6239, -- SET_VEHICLE_AS_NO_LONGER_NEEDED
  Citizen.PointerValueInt() -- Vehicle* vehicle
)
print(vehicle)
JavaScript
const vehicle = Citizen.invokeNative("0x629BFA74418D6239", // SET_VEHICLE_AS_NO_LONGER_NEEDED
  Citizen.pointerValueInt() // Vehicle* vehicle
);
console.log(vehicle)
C#
var vehicleArg = new OutputArgument();
Function.Call((Hash)0x629BFA74418D6239, // SET_VEHICLE_AS_NO_LONGER_NEEDED
  vehicleArg // Vehicle* vehicle
);
int vehicle = vehicleArg.GetResult<int>();
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.