How can we install Lua modules with LuaRocks?

Hello, I want to use FlatBuffers to send data with lua.
This is FlatBuffers library:

However, nakama lua runtime is Lua5.1. We need to install modules like compat53 (For Lua5.3 string.pack, etc.) for FlatBuffers.
I think we can use luarocks to install to run FlatBuffers on nakama lua runtime. How can we install dependencies module on nakama lua runtime with luarocks? Or do we need to import like compat53 library to data/modules to let FlatBuffers work?

Thanks!

Hi @Tsen we’d recommend installing a local Lua 5.1 and LuaRocks setup, installing your required packages and copying the Lua files to your server project.