TasksClientNot in this build

clearPedScriptTaskIfRunningThreatResponseNonTempTask

CLEAR_PED_SCRIPT_TASK_IF_RUNNING_THREAT_RESPONSE_NON_TEMP_TASK0xF6DC48E56BE1243A

The GTA V native CLEAR_PED_SCRIPT_TASK_IF_RUNNING_THREAT_RESPONSE_NON_TEMP_TASK of the TASK namespace, as LS:MP client scripts call it: the global function clearPedScriptTaskIfRunningThreatResponseNonTempTask, in JavaScript and in Lua.

SignatureJavaScript
clearPedScriptTaskIfRunningThreatResponseNonTempTask(ped: Ped): void
SignatureLua
clearPedScriptTaskIfRunningThreatResponseNonTempTask(ped: Ped)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
clearPedScriptTaskIfRunningThreatResponseNonTempTask(ped);
Lua
clearPedScriptTaskIfRunningThreatResponseNonTempTask(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void CLEAR_PED_SCRIPT_TASK_IF_RUNNING_THREAT_RESPONSE_NON_TEMP_TASK(Ped ped)
Hash
0xF6DC48E56BE1243A
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference