taskSetDecisionMaker
TASK_SET_DECISION_MAKER0xEB8517DDA73720DAThe 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.
taskSetDecisionMaker(ped: Ped, decisionMakerId: Hash): voidtaskSetDecisionMaker(ped: Ped, decisionMakerId: Hash)Usage
JavaScript
taskSetDecisionMaker(ped, decisionMakerId);Lua
taskSetDecisionMaker(ped, decisionMakerId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
decisionMakerId | Hash | number | integer |
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