Knowledgebase » Developers » File String Replacements

You can deliver unique files to every user who downloads your script, in any file with the following extensions .txt, .lua, .php or .js they will replace the following strings with their corresponding value.

  • {{ user_id }} : will be replaced with the user's id

  • {{ user_id | 25 }} : will be replaced with the user's id xored by 25

  • {{ user_id sha256 key }} : will be replaced with a sha256 of the user's id with key appended

  • {{ script_id }} : will be replaced with the script's id number

  • {{ script_version_id }} : will be replaced with the downloaded version id

  • {{ script_version_name }} : will be replaced with the downloaded version name

  • {{ script_version_hash }} : will be replaced with the downloaded version hash

  • {{ web_hook "https://website.tld/somescript.php" "secretkey" }} : Sends a POST containing steamid, script_id and version_name. The "secretkey" is sent in a POST called extra. Replaces the text with whatever the website returns.


Last updated December 6, 2016 14:45 by Marcuz