RedM Natives

GET_HASH_OF_THIS_SCRIPT_NAME

Hash0xBC2C927F5C264960
Runtime nameGetHashOfThisScriptName
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8A1C8B1738FFE87E

Signature

Hash GET_HASH_OF_THIS_SCRIPT_NAME();

Returns Hash

Usage

Lua
local retval = GetHashOfThisScriptName()

-- always works, by hash
local retval = Citizen.InvokeNative(0xBC2C927F5C264960, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetHashOfThisScriptName();

// by hash
const retval = Citizen.invokeNative('0xBC2C927F5C264960', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xBC2C927F5C264960);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.