Difference between revisions of "MDE Scripting: ToHashName"

From Nomad DB
 
Line 1: Line 1:
 +
{{Page_MDE}}
 
{| class="wikitable"
 
{| class="wikitable"
 
!Syntax
 
!Syntax

Latest revision as of 20:25, 27 October 2020

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)