The Lab
BUILTIN native

SET_THIS_THREAD_PRIORITY

returns void1 parambuild 1207

Sets the scheduling priority of the currently running script thread to priority.

Signature

C
void SET_THIS_THREAD_PRIORITY(int priority); // 0x42B65DEEF2EDF2A1 b1207

Parameters

#NameType
1priorityint

Facts

Facts about SET_THIS_THREAD_PRIORITY
Name
SET_THIS_THREAD_PRIORITY
Hash
0x42B65DEEF2EDF2A1
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(0x42B65DEEF2EDF2A1, -- SET_THIS_THREAD_PRIORITY
  0 -- int priority
)
JavaScript
Citizen.invokeNative("0x42B65DEEF2EDF2A1", // SET_THIS_THREAD_PRIORITY
  0 // int priority
);
C#
Function.Call((Hash)0x42B65DEEF2EDF2A1, // SET_THIS_THREAD_PRIORITY
  0 // int priority
);
All BUILTIN natives

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