RedM Natives

_GET_PED_WRITHE_BREAK_FREE_PROGRESS

Returns the current 'Break Free' prompt progress for a hogtied/knocked-out (writhing) ped.

Hash0x03D741CB4052E26C
Runtime nameGetPedWritheBreakFreeProgress
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1232
Also known as_GET_PED_BREAK_FREE_PROGRESS

Signature

float _GET_PED_WRITHE_BREAK_FREE_PROGRESS(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Description

alloc8or RDR3 NativeDB

Returns the current 'Break Free' prompt progress for a hogtied/knocked-out (writhing) ped.
Range: 0.0-1.0 (hits 1.0 when the ped breaks free). Returns -1.0 if not applicable.

VORPCORE RDR3natives

Returns the current progress of the (Break Free) prompt when the specified ped is hogtied or knocked out. The value increases as the player spams the prompt key until it reaches 1.0, at which point the ped breaks free.

Usage

Lua
local retval = GetPedWritheBreakFreeProgress(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x03D741CB4052E26C, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedWritheBreakFreeProgress(ped);

// by hash
const retval = Citizen.invokeNative('0x03D741CB4052E26C', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x03D741CB4052E26C, ped);
  • 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.

Examples

LUA · VORPCORE RDR3natives
local progress = Citizen.InvokeNative(0x03D741CB4052E26C, PlayerPedId(), Citizen.ResultAsFloat())
--progress will be between 0.0 and 1.0 depending on how far the break free action has advanced.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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