The Lab
TASK native

TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS

returns void2 paramsbuild 1207

When toggle is true, ped ignores non-temporary events (threats, gunfire) and keeps doing its current task.

Use it so scripted peds are not distracted by ambient events.

Signature

C
void TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(Ped ped, BOOL toggle); // 0x90D2156198831D69 b1207

Parameters

#NameType
1pedPed
2toggleBOOL

Facts

Facts about TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
Name
TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
Hash
0x90D2156198831D69
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x90D2156198831D69, -- TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
  PlayerPedId(), -- Ped ped
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x90D2156198831D69", // TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
  PlayerPedId(), // Ped ped
  false // BOOL toggle
);
C#
Function.Call((Hash)0x90D2156198831D69, // TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
  API.PlayerPedId(), // Ped ped
  false // BOOL toggle
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.