TasksClient

taskSetDecisionMaker

TASK_SET_DECISION_MAKER0xEB8517DDA73720DA

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

SignatureJavaScript
taskSetDecisionMaker(ped: Ped, decisionMakerId: Hash): void
SignatureLua
taskSetDecisionMaker(ped: Ped, decisionMakerId: Hash)

Usage

JavaScript
taskSetDecisionMaker(ped, decisionMakerId);
Lua
taskSetDecisionMaker(ped, decisionMakerId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
decisionMakerIdHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1 is always getHashKey("empty") in scripts, for the rare times this is used

Reference

Namespace
Tasks TASK
In the game
void TASK_SET_DECISION_MAKER(Ped ped, Hash decisionMakerId)
Hash
0xEB8517DDA73720DA

Open in the interactive natives reference