getnamecallmethod
Returns the method name used in the current __namecall invocation.
function getnamecallmethod(): stringstringThe method name being dispatched through __namecall.Usage
Branch inside a namecall hook
hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
local method = getnamecallmethod()
if method == "HttpGet" then
print("HttpGet called with:", ...)
end
return hookmetamethod_original(self, ...)
end))