RedM Natives

_RECOVER_DRAFT_VEHICLE_FALLING_LOG

Returns the log prop entity that is currently detaching/falling from a draft (log) wagon.

Hash0x42404D57D621601A
Runtime nameRecoverDraftVehicleFallingLog
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Entity _RECOVER_DRAFT_VEHICLE_FALLING_LOG(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns Entity

Description

Returns the log prop entity that is currently detaching/falling from a draft (log) wagon. Returns 0 if no log is in the falling phase.
R* scripts call this repeatedly to fetch each fallen piece, then apply forces to it.
Video demo: https://imgur.com/a/5JEeOij

Usage

Lua
local retval = RecoverDraftVehicleFallingLog(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x42404D57D621601A, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = RecoverDraftVehicleFallingLog(vehicle);

// by hash
const retval = Citizen.invokeNative('0x42404D57D621601A', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x42404D57D621601A, vehicle);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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