makes hookfunction require a key V1
Key RequiredUniversal

makes hookfunction require a key V1

Universal ScriptUnnesscaryInventionsUnnesscaryInventions 11.1K views 4 executesUpdated Oct 24, 2024
Unrated
00
Lua Script•16 lines (559 chars)
local hf1
local Code = "1"
hf1 = hookfunction(hookfunction, newcclosure(function(old, new, AdminKey)
  if not AdminKey then
    print("Missing Admin Key, Preventing hookfunction to replace" .. debug.getinfo(old).name .. "with" .. debug.getinfo(new).name .. "!")
    return hf1(print, print)
  end
  if AdminKey == Code then
    return hf1(old, new)
  else
    print("Invalid Admin Key, Preventing hookfunction to replace" .. debug.getinfo(old).name .. "with" .. debug.getinfo(new).name .. "!")
  end
  return hf1(print, print)
end))

hookfunction(print, warn)

Features & Information

litteraly just makes hookfunction require a special key usage : hookfunction(print, warn, "1")
#hookfunction#clonefunction

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts