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