get_gateway() Get a gateway registered for a plugin the current script belongs to. Call Example Edit core.get_gateway() params: none. return: a gateway (table) or nil in a case of an error. Edit require "core" local gateway = core.get_gateway() if gateway == nil then print("fail to get a gateway") end