RedM Natives

CLEAR_PED_SECONDARY_TASK

CLEAR_PED_SECONDARY_TASK This is the server-side RPC native equivalent of the client native CLEAR_PED_SECONDARY_TASK.

Hash0xA635F451
Runtime nameClearPedSecondaryTask
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void CLEAR_PED_SECONDARY_TASK(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns void

Description

Cfx.re native reference

CLEAR_PED_SECONDARY_TASK

This is the server-side RPC native equivalent of the client native CLEAR_PED_SECONDARY_TASK.

Usage

Lua
ClearPedSecondaryTask(ped)

-- always works, by hash
Citizen.InvokeNative(0xa635f451, ped)
JavaScript and C#
JavaScript
ClearPedSecondaryTask(ped);

// by hash
Citizen.invokeNative('0xa635f451', ped);
C#
Function.Call((Hash)0xa635f451, ped);

Sources

Cfx.re native reference

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