Vurv78 / Autorun-rs

Modern scripthook with lua execution and filesteal. Replacement for gluasteal and most lua executors
Apache License 2.0
104 stars 11 forks source link

Menu Presence / ROC / ROM #52

Open Vurv78 opened 2 years ago

Vurv78 commented 2 years ago

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.

Andrew-Eathan commented 2 years ago

an event based design would be more practical