_RECOVER_DRAFT_VEHICLE_FALLING_LOG
Returns the log prop entity that is currently detaching/falling from a draft (log) wagon.
Hash
0x42404D57D621601ARuntime name
RecoverDraftVehicleFallingLogNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Entity _RECOVER_DRAFT_VEHICLE_FALLING_LOG(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
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
local retval = RecoverDraftVehicleFallingLog(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x42404D57D621601A, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = RecoverDraftVehicleFallingLog(vehicle);
// by hash
const retval = Citizen.invokeNative('0x42404D57D621601A', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.