This is so far just a binary module that adds rhai scripting to garrysmod using rglua.
It adds a table that only contains one function run
.
It only has print
exposed to print to the gmod console though, since this is just a proof of concept until I expose entity methods or something.
require "rhai"
rhai.run([[
print("Hello world!")
]])
- I wanted to do something with
rglua
. - It is incredibly easy to sandbox and expose functions to.
- It's syntax is really close to Rust's, and while mun might be closer, #2 made me pick this for now.
Because of these reasons, I made this and I want to experiment with it so here's this repo.