ScriptClient

getThisScriptName

GET_THIS_SCRIPT_NAME0x442E0A7EDE4A738A

The GTA V native GET_THIS_SCRIPT_NAME of the SCRIPT namespace, as LS:MP client scripts call it: the global function getThisScriptName, in JavaScript and in Lua.

SignatureJavaScript
getThisScriptName(): string
SignatureLua
getThisScriptName(): string

Usage

JavaScript
const text = getThisScriptName();
Lua
local text = getThisScriptName()

Parameters

None.

Returns

string JavaScript string, Lua string

Reference

Namespace
Script SCRIPT
In the game
const char* GET_THIS_SCRIPT_NAME()
Hash
0x442E0A7EDE4A738A

Open in the interactive natives reference