Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: all (86)

Lua Command checksumstring

Categories

Parameters

  • "string"

Info

Returns the SHA256 checksum of the given string.

Sample 1: Get the checksum of a player's name
addhook("join", "namesum")
function namesum(id)
   msg2(id, "Welcome! Your name's checksum is: " .. checksumstring(player(id, "name")))
end