The Lab
SCRIPT native

GET_HASH_OF_THIS_SCRIPT_NAME

returns Hash0 paramsbuild 1207

Returns the name hash of the script that is currently running.

Signature

C
Hash GET_HASH_OF_THIS_SCRIPT_NAME(); // 0xBC2C927F5C264960 b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_HASH_OF_THIS_SCRIPT_NAME
Name
GET_HASH_OF_THIS_SCRIPT_NAME
Hash
0xBC2C927F5C264960
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0xBC2C927F5C264960, -- GET_HASH_OF_THIS_SCRIPT_NAME
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xBC2C927F5C264960", // GET_HASH_OF_THIS_SCRIPT_NAME
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xBC2C927F5C264960); // GET_HASH_OF_THIS_SCRIPT_NAME
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.