BG_GET_SCRIPT_ID_FROM_NAME_HASH
Hash
0x829CD22E043A2577Runtime name
BgGetScriptIdFromNameHashNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x829CD22E043A2577Not called by the game's own scripts — behaviour may be incomplete.
Signature
int BG_GET_SCRIPT_ID_FROM_NAME_HASH(Hash p0);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Hash | — |
Returns int
Usage
local retval = BgGetScriptIdFromNameHash(p0)
-- always works, by hash
local retval = Citizen.InvokeNative(0x829CD22E043A2577, p0, Citizen.ResultAsInteger())JavaScript and C#
const retval = BgGetScriptIdFromNameHash(p0);
// by hash
const retval = Citizen.invokeNative('0x829CD22E043A2577', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x829CD22E043A2577, p0);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.