SET_PED_KEEP_TASK
Makes ped keep its current task after the script that gave it ends.
Signature
void SET_PED_KEEP_TASK(Ped ped, BOOL toggle); // 0x971D38760FBC02EF b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | toggle | BOOL |
Facts
| 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.
Citizen.InvokeNative(0x971D38760FBC02EF, -- SET_PED_KEEP_TASK
PlayerPedId(), -- Ped ped
false -- BOOL toggle
)Citizen.invokeNative("0x971D38760FBC02EF", // SET_PED_KEEP_TASK
PlayerPedId(), // Ped ped
false // BOOL toggle
);Function.Call((Hash)0x971D38760FBC02EF, // SET_PED_KEEP_TASK
API.PlayerPedId(), // Ped ped
false // BOOL toggle
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.