MDE Scripting: ToHashName
From Nomad DB
Syntax | game.game:ToHashName(string name)
|
---|---|
Module | Game |
Library | Game |
Game | Mafia: Definitive Edition |
Description
Convert a name in hash.
Parameters
Name | Type | Description |
---|---|---|
name | string | The name you want to convert in hash. |
Returns
# | Type | Description |
---|---|---|
1 | C_HashName | The name converted in hash. You can use the value directly or manipulate C_HashName. |
Examples
local hash = game.game:ToHashName("district_01_chinatown") -- returns the hash of "district_01_chinatown" (15590509413988131779)
Aliases
local hash = tohashname("district_01_chinatown") -- returns the hash of "district_01_chinatown" (15590509413988131779)
local hash = string.tohash("district_01_chinatown") -- returns the hash of "district_01_chinatown" (15590509413988131779)