Built-inClientBlocked

setThisThreadPriority

SET_THIS_THREAD_PRIORITY0x42B65DEEF2EDF2A1

The GTA V native SET_THIS_THREAD_PRIORITY of the BUILTIN namespace, as LS:MP client scripts call it: the global function setThisThreadPriority, in JavaScript and in Lua.

SignatureJavaScript
setThisThreadPriority(priority: number): void
SignatureLua
setThisThreadPriority(priority: integer)
✕
Blocked for scripts: Game script threads

Resources do not start, stop or adopt the game's own compiled scripts. Your code runs as an LS:MP resource.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Built-in BUILTIN
In the game
void SET_THIS_THREAD_PRIORITY(int priority)
Hash
0x42B65DEEF2EDF2A1
Introduced
Game build 877 legacy numbering

Open in the interactive natives reference