The Lab
PED native

SET_PED_KEEP_TASK

returns void2 paramsbuild 1207

Makes ped keep its current task after the script that gave it ends.

Signature

C
void SET_PED_KEEP_TASK(Ped ped, BOOL toggle); // 0x971D38760FBC02EF b1207

Parameters

#NameType
1pedPed
2toggleBOOL

Facts

Facts about SET_PED_KEEP_TASK
Name
SET_PED_KEEP_TASK
Hash
0x971D38760FBC02EF
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(0x971D38760FBC02EF, -- SET_PED_KEEP_TASK
  PlayerPedId(), -- Ped ped
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x971D38760FBC02EF", // SET_PED_KEEP_TASK
  PlayerPedId(), // Ped ped
  false // BOOL toggle
);
C#
Function.Call((Hash)0x971D38760FBC02EF, // SET_PED_KEEP_TASK
  API.PlayerPedId(), // Ped ped
  false // BOOL toggle
);
All PED natives

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