You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently I have the following code from that page inside the init file for a gamemode at the very top of it: require'lanes' local f = lanes.gen(function(n) return 2 * n end) local a = f(1) local b = f(2) print(a[1],b[1])
the issue I'm running into is:
[ERROR] gamemodes/mygamemode/gamemode/init.lua:2: attempt to call field 'gen' (a nil value)
my guess is I'm not using the correct way of using gen but I am unsure of what exactly I am doing wrong here.
I currently have gmsv_lanes.core_win32 inside my garrysmod/garrysmod/lua/bin/ and lanes.lua inside garrysmod/garrysmod/lua/includes/modules/
So everything SHOULD be in the correct place to my knowledge.
EDITE: I got it to work with the code, needed to use the configure function after require. I am still interested in a demonstration but I'm going to also practice aswell on my own. thank you for creating this btw :)
pretty much what the title says. like something that would demonstrate how to put two separate things running on separate threads with this
The text was updated successfully, but these errors were encountered: