ObjectNameToHashID
This function was added in DSL 8
Description
This function is not defined on the client, so the normal ObjectNameToHashID
will be used instead.
On the server, this function returns light userdata representing the hashed string to copy the client behavior.
function ObjectNameToHashID(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 = ObjectNameToHashID('example_object')
print('Hash ID for "example_object": ' .. tostring(hash))
end