SET_DECISION_MAKER
Assigns the decision maker named by name to the ped, changing how it reacts to events.
Signature
void SET_DECISION_MAKER(Ped ped, Hash name); // 0x8AE2F981CDDB8FA4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | name | Hash |
Facts
| Name | SET_DECISION_MAKER |
|---|---|
| Hash | 0x8AE2F981CDDB8FA4 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x8AE2F981CDDB8FA4, -- SET_DECISION_MAKER
PlayerPedId(), -- Ped ped
GetHashKey("name") -- Hash name
)Citizen.invokeNative("0x8AE2F981CDDB8FA4", // SET_DECISION_MAKER
PlayerPedId(), // Ped ped
GetHashKey("name") // Hash name
);Function.Call((Hash)0x8AE2F981CDDB8FA4, // SET_DECISION_MAKER
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name") // Hash name
);Related EVENT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.