TASK_GRAPPLE
Tasks ped to grapple targetPed using grappleStyle. Returns true on success.
Signature
BOOL TASK_GRAPPLE(Ped ped, Ped targetPed, Hash grappleStyle, int p3, float p4, int p5, int p6); // 0x779A2FFACEFAEA7B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetPed | Ped |
| 3 | grappleStyle | Hash |
| 4 | p3 | int |
| 5 | p4 | float |
| 6 | p5 | int |
| 7 | p6 | int |
Facts
| 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.
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// 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) {
// ...
}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
);Related TASK natives
- TASK_PUT_PED_DIRECTLY_INTO_GRAPPLE
- CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_MOUNTED_WEAPON_TASK_UNDERNEATH_DRIVING_TASK
- TASK_GO_STRAIGHT_TO_COORD
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_ANY_MEANS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.