Skip to main content

GetHash

This function was added in DSL 9

Description

Works just like ObjectNameToHashID, but it is case-sensitive.

function GetHash(name) --[[ ... ]] end

Parameters

  • name: string - The name of the object to hash.

Return Values

  • hash: userdata - Light userdata representing the hashed string.

Example

function main()
while not SystemIsReady() do
Wait(0)
end

local hash = GetHash('example_object')
print('Hash ID for "example_object": ' .. tostring(hash))
end