AcediaDocumentation

getscripthash

Hashes a script container's bytecode with SHA-384.

Returns 96 lowercase hexadecimal characters, or nil when the container has no readable blob or the blob cannot be decoded. The hash covers the decoded bytecode, the same bytes getscriptbytecode returns, so two containers holding the same script hash alike regardless of how the engine stored them.

getscripthash(target: LuaSourceContainer): string?

Parameters

ParameterTypeDescription
targetLuaSourceContainerScript to hash.

On this page