Autorun-rs icon indicating copy to clipboard operation
Autorun-rs copied to clipboard

Menu Presence / ROC / ROM

Open vurvdev opened this issue 4 years ago • 1 comments

Have a menu.lua file that will be run when the game launches in all plugins

Essentially could act as a replacement for https://github.com/glua/gmod-menu-plugins

As well as for ROC (https://github.com/glua/gm_roc), except this would be between both realms.

Then there'd be ability to communicate with Autorun, with an api potentially like:

-- CLIENT
Autorun.sendToMenu(55, "hello", "world")
Autorun.getFromMenu(print)

-- MENU
Autorun.getFromClient(function(xyz)
	print(xyz)
end)
Autorun.sendToClient(55)

--[[
Or an event based design
]]

-- CLIENT or MENU
Autorun.onEvent("xyz", function()

end)

-- CLIENT or MENU
Autorun.runEvent("xyz", 55)

Feel free to give API design ideas in here or on the discord.

vurvdev avatar Mar 27 '22 21:03 vurvdev

an event based design would be more practical

Andrew-Eathan avatar May 15 '22 18:05 Andrew-Eathan