sv_allowcslua = 1
but sv_allowcslua is only for clientside scripts
How are you trying to use lua_openscript?
Pretty sure lua_openscript will only work from [b]servers[/b] console in case you are trying to use it like lua_openscript_cl which only works from client's console.
I use mlua_openscript like this : lua_openscript test.lua in the server console
In lua/test.lua :
print("Shrek")
Name your file something unique, I've had issues with "test.lua" before
I have named my script : iloveshrekandthekrabs.lua
and when id do lua_openscript iloveshrekandthekrabs.lua the console don't print Shrek
Does it print anything?
-snip-
Hi,
no code_gs
PS : my server.cfg :
net_maxfilesize 9999
sv_password 1980
sv_allowcslua 1
sv_allowdownload 0
sv_allowupload 0
FYI - net_maxfilesize caps at 64 and is ignored when sv_downloadurl is set (FastDL does not have file limits).
Ok thanks Banana Lord !
Help with lua_openscript?
The Lua file is located on the server, correct? And you're running lua_openscript from the SRCDS console, not your game, correct?
Yes
[QUOTE=SuperMicronde;52080313]Yes[/QUOTE]
Then it should be working.
Could you post the exact path to your lua file and exactly what you write in the console?
My file path : /garrysmod/lua/iloveshrekandthekrabs.lua
In the console i write : lua_openscript iloveshrekandthekrabs.lua
Try typing lua_run print"Foo" into console and see if it prints.
you have to put it in your SERVER CONSOLE BLACK THING THAT OPENS WHEN U RUN SERVER not the "console" in ur game when u press ~
code_gs lua_run print'foo' is functionally, and bloodmasked i know, maybe the problem is from ULX or ULIB
where is your file located and what are you typing in console
My file path : /garrysmod/lua/iloveshrekandthekrabs.lua
In the console i write : lua_openscript iloveshrekandthekrabs.lua
Sorry, you need to Log In to post a reply to this thread.