-
Notifications
You must be signed in to change notification settings - Fork 6
RPC
Mikulas Florek edited this page Nov 29, 2020
·
6 revisions
Connection must be initialized with Low-level API first
Network.call(connection, "function_name", "arg0_value")
The third argument is name of the function. It has to be in table Network.RPCFunctions
. There can by any number of arguments after the 3rd argument.
Network.call(connection, "function_with_4_args", "arg0_value", 1234, true, "arg4_value")
Only strings, numbers and booleans are supported.
Network.RPCFunctions = {
function_name = function(arg)
Engine.logError("RPC " .. tostring(arg))
end
}