The Lab
TASK native

TASK_GRAPPLE

returns BOOL7 paramsbuild 1207

Tasks ped to grapple targetPed using grappleStyle. Returns true on success.

Signature

C
BOOL TASK_GRAPPLE(Ped ped, Ped targetPed, Hash grappleStyle, int p3, float p4, int p5, int p6); // 0x779A2FFACEFAEA7B b1207

Parameters

#NameType
1pedPed
2targetPedPed
3grappleStyleHash
4p3int
5p4float
6p5int
7p6int

Facts

Facts about TASK_GRAPPLE
Name
TASK_GRAPPLE
Hash
0x779A2FFACEFAEA7B
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x779A2FFACEFAEA7B, -- TASK_GRAPPLE
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped targetPed
  GetHashKey("name"), -- Hash grappleStyle
  0, -- int p3
  0.0, -- float p4
  0, -- int p5
  0 -- int p6
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x779A2FFACEFAEA7B", // TASK_GRAPPLE
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped targetPed
  GetHashKey("name"), // Hash grappleStyle
  0, // int p3
  0.0, // float p4
  0, // int p5
  0, // int p6
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x779A2FFACEFAEA7B, // TASK_GRAPPLE
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped targetPed
  (uint)API.GetHashKey("name"), // Hash grappleStyle
  0, // int p3
  0.0f, // float p4
  0, // int p5
  0 // int p6
);
All TASK natives

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