Garry's Mod

Garry's Mod

View Stats:
How to load lua from console
I'm trying to start making addons, but when I'm trying to use
lua_openscript (_cl)
from gmod console, but there arent any scipts. I'm playing on local dedicated server and I can open .lua from DS console, but only server sided. Can anybody help me?
Last edited by ЛЯГУШКА?; Sep 7, 2021 @ 9:11am
Originally posted by Xibitol:
Hey! It might be a little bit late but you can only use "lua_openscript" on server side and "lua_openscript_cl" on client side if the server allows you to open scripts on client side (See sv_allowcslua convar at Garry's Mod Convars[wiki.facepunch.com]). Also, scripts you want to open must be visible in the realm you are sending the command. So, the client cannot open a script that is only on server side. Hope this help!
< >
Showing 1-1 of 1 comments
The author of this thread has indicated that this post answers the original topic.
Xibitol Jan 22 @ 5:33am 
Hey! It might be a little bit late but you can only use "lua_openscript" on server side and "lua_openscript_cl" on client side if the server allows you to open scripts on client side (See sv_allowcslua convar at Garry's Mod Convars[wiki.facepunch.com]). Also, scripts you want to open must be visible in the realm you are sending the command. So, the client cannot open a script that is only on server side. Hope this help!
Last edited by Xibitol; Jan 22 @ 5:34am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Sep 7, 2021 @ 9:11am
Posts: 1