Difference between revisions of "MDE Scripting: ToHashName"
From Nomad DB
(Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.game:ToHashName(string stringValue)</syntaxhighlight> |- !Module |Game |- !...") |
|||
Line 37: | Line 37: | ||
!Description | !Description | ||
|- | |- | ||
− | |1 | + | | style="font-weight: bold; text-align:center;" | 1 |
|[[MDE Scripting: C_HashName|C_HashName]] | |[[MDE Scripting: C_HashName|C_HashName]] | ||
|The hash name converted. You can use the value directly or manipulate [[MDE Scripting: C_HashName|C_HashName]]. | |The hash name converted. You can use the value directly or manipulate [[MDE Scripting: C_HashName|C_HashName]]. |
Revision as of 20:43, 17 October 2020
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"