Hello, I just watched a tutorial from a guy on yt, who created a scoreboard. I watched the video and understood what he was doing but he put his code in his own gamemode. I dont have my own gamemode so i just tried to put the "init.lua", "cl_init.lua", "shared.lua" and "cl_scoreboard.lua" files
into the sanbox gamemode and it didnt worked. So I just did this:
https://files.facepunch.com/forum/upload/305674/8711ad04-f435-4c37-8f4b-d3d90b2ad5a6/Screenshot_20.png
https://files.facepunch.com/forum/upload/305674/8bec0849-aace-49f2-ba1f-dd6cdea3f19c/Screenshot_22.png
https://files.facepunch.com/forum/upload/305674/b587d786-0cb6-4678-8c17-b65e0c8175e4/Screenshot_21.png
but now it still dont works:(
Thx for ur help and sorry for my many question.
You put cl_scoreboard in server. You should also use more unique names than shared/cl_init/init if you're going to be putting files in lua/autorun - they'll conflict with other addons.
https://files.facepunch.com/forum/upload/305674/1227ba64-1bb2-4e0d-8da1-8d315ae284c9/Screenshot_23.png
I tried to rename the files and put them again in the gamemode folder but it still dont works
do you want the code?
You can't just toss files in a gamemode folder and expect it to work - "init.lua" and "cl_init.lua" are the only files automatically loaded in a gamemode. Everything else must be included manually.
So I have to put it in the addons folder I guess
ok, you recently asked so many questions about "where do i put this", "where goes this", so now i have a question:
did you ever watched a tutorial about gmod addons? the first thing that gets shown is where to create files and where to put them..
structure your addons like this
addons
L addon_name
L autorun
L server
sv_init_addon_name.lua
L client
cl_init_addon_name.lua
sh_init_addon_name.lua
L addon_name
L server
some_included_file.lua
L client
some_included_file.lua
L shared
some_included_file.lua
Sorry, you need to Log In to post a reply to this thread.