RedM Natives

TASK_PAUSE

This tasks the ped to do nothing for the specified amount of milliseconds.

Hash0xE73A266DB0CA9042
Runtime nameTaskPause
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE73A266DB0CA9042

Signature

void TASK_PAUSE(Ped ped, int ms);

Parameters

NameTypeDescription
pedPed—
msint—

Returns void

Description

This tasks the ped to do nothing for the specified amount of milliseconds.
This is useful if you want to add a delay between tasks when using a sequence task.

Usage

Lua
TaskPause(ped, ms)

-- always works, by hash
Citizen.InvokeNative(0xE73A266DB0CA9042, ped, ms)
JavaScript and C#
JavaScript
TaskPause(ped, ms);

// by hash
Citizen.invokeNative('0xE73A266DB0CA9042', ped, ms);
C#
Function.Call((Hash)0xE73A266DB0CA9042, ped, ms);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.