require("socket") returns nil
DasDarki opened this issue · 2 comments
DasDarki commented
Hey,
I am trying to use this library but cant get it running until the require statement.
I have moved all linux dlls into the lua/bin folder https://i.imgur.com/hCe2WQR.png and
when i use require("socket") the returned value is nil
if socket == nil then
print("Why the fuck is the socket lib nil?!")
end```
the print message gets printed. But there are no errors in the console, that the module couldnt be loaded
danielga commented
require
returns nothing on Garry's Mod. Instead, the modules set a global table called socket
.
You said you moved the Linux dlls into place but have you moved the Lua files too? They're in includes/modules
.
danielga commented
Closed because of no activity.