Script::getThreadName

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

The reversed code looks like this (Sasuke78200)

//
char g_szScriptName[64];

char* _0xBE7ACD89(int a_iThreadID)
{
scrThread* l_pThread;

// Get the script thread
l_pThread = GetThreadByID(a_iThreadID);

if(l_pThread == 0 || l_pThread->m_iThreadState == 2)
{
strncpy(g_szScriptName, , 64);
}
else
{
strncpy(g_szScriptName, l_pThread->m_szScriptName, 64);
}

return g_szScriptName;
}

Syntax

mp.game.script.getThreadName(threadId);

Required Arguments

  • threadId: int

Return value

  • String

Example

// todo

See also

Template:Script s function c