MDE Scripting: ToHashName

From Nomad DB
Revision as of 01:41, 16 October 2020 by Deewarz (talk | contribs) (Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.game:ToHashName(string stringValue)</syntaxhighlight> |- !Module |Game |- !...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"