getNameOfScriptWithThisId
GET_NAME_OF_SCRIPT_WITH_THIS_ID0x05A42BA9FC8DA96BThe GTA V native GET_NAME_OF_SCRIPT_WITH_THIS_ID of the SCRIPT namespace, as LS:MP client scripts call it: the global function getNameOfScriptWithThisId, in JavaScript and in Lua.
getNameOfScriptWithThisId(threadId: number): stringgetNameOfScriptWithThisId(threadId: integer): stringUsage
JavaScript
const text = getNameOfScriptWithThisId(threadId);Lua
local text = getNameOfScriptWithThisId(threadId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
threadId | int | number | integer |
Returns
string JavaScript string, Lua stringReference
- Namespace
- Script SCRIPT
- In the game
const char* GET_NAME_OF_SCRIPT_WITH_THIS_ID(int threadId)- Hash
0x05A42BA9FC8DA96B- Formerly
_GET_THREAD_NAME_GET_NAME_OF_THREAD