I have been getting a lot of problems seemingly not knowing what command or function isnt serverside or clientside. Rate this as dumb if you want but i just want to know if there is any kind of way of telling the difference.
Lua files must exist in one of three states: server, client, or shared
If the file is server or client only, it's simple. If it's shared, it is usually on both but using if statements may be restricted to a specific state. You can usually tell what state a file is in based on it's prefix (either sv_, cl_, or sh_), or sometimes it is indicate in the folders (ex. autorun/server/cleanup.lua).
If you're talking about the gmod wiki page
[url]http://wiki.garrysmod.com/page/Main_Page[/url]
Then the orange box is clientside, blue is server side and shared is both :)
If you're confused editing .lua scripts, then just lookup the function on the wiki and there's your answer :)
[QUOTE=RaKo;50558603]If you're talking about the gmod wiki page
[url]http://wiki.garrysmod.com/page/Main_Page[/url]
Then the orange box is clientside, blue is server side and shared is both :)
If you're confused editing .lua scripts, then just lookup the function on the wiki and there's your answer :)[/QUOTE]
Yeah but most wiki pages dont say what file they belong in which is my problem
[QUOTE=Bouncer;50558949]Yeah but most wiki pages dont say what file they belong in which is my problem[/QUOTE]
They do. Orange = client, Server = blue
[QUOTE=code_gs;50559062]They do. Orange = client, Server = blue[/QUOTE]
Oh i see what you mean. Thank god i have been wondering for so long. Marking as solved
Sorry, you need to Log In to post a reply to this thread.