TASK_PUT_PED_DIRECTLY_INTO_GRAPPLE
Hash
0xA05F3F20889D7A5BRuntime name
TaskPutPedDirectlyIntoGrappleNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_PUT_PED_DIRECTLY_INTO_GRAPPLE(Ped ped, Ped grappleTarget, Hash grappleStyle, float p3, float p4, BOOL p5, int p6);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
grappleTarget | Ped | — |
grappleStyle | Hash | — |
p3 | float | — |
p4 | float | — |
p5 | BOOL | — |
p6 | int | — |
Returns void
Description
grappleStyle: AR_GRAPPLE_STRUGGLE, AR_ALLIGATOR_LEG_GRAB_CHALLENGE_FAIL, AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_BACK_DEFEND, AR_GRAPPLE_FRONT_FROM_FRONT
Usage
TaskPutPedDirectlyIntoGrapple(ped, grappleTarget, grappleStyle, p3, p4, p5, p6)
-- always works, by hash
Citizen.InvokeNative(0xA05F3F20889D7A5B, ped, grappleTarget, grappleStyle, p3, p4, p5, p6)JavaScript and C#
TaskPutPedDirectlyIntoGrapple(ped, grappleTarget, grappleStyle, p3, p4, p5, p6);
// by hash
Citizen.invokeNative('0xA05F3F20889D7A5B', ped, grappleTarget, grappleStyle, p3 + 0.0000001, p4 + 0.0000001, p5, p6);Function.Call((Hash)0xA05F3F20889D7A5B, ped, grappleTarget, grappleStyle, p3, p4, p5, p6);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.