RedM Natives

SCHEDULE_RESOURCE_TICK

Schedules the specified resource to run a tick as soon as possible, bypassing the server's fixed tick rate.

Hash0xB88A73AD
Runtime nameScheduleResourceTick
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SCHEDULE_RESOURCE_TICK(char* resourceName);

Parameters

NameTypeDescription
resourceNamechar*

The resource to tick.

Returns void

Description

Cfx.re native reference

Schedules the specified resource to run a tick as soon as possible, bypassing the server's fixed tick rate.

Usage

Lua
ScheduleResourceTick(resourceName)

-- always works, by hash
Citizen.InvokeNative(0xb88a73ad, resourceName)
JavaScript and C#
JavaScript
ScheduleResourceTick(resourceName);

// by hash
Citizen.invokeNative('0xb88a73ad', resourceName);
C#
Function.Call((Hash)0xb88a73ad, resourceName);

Sources

Cfx.re native reference

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