English Path outside of CS2D folder

2 replies
Goto Page
To the start Previous 1 Next To the start
23.01.20 03:54:37 am
Up
AtomKuh
User
Offline Off
Is it possible to reach files outside of the cs2d main folder?

For example:

Code:
1
dofile("C:\Users\Mustermann\Desktop\test.lua")
23.01.20 04:52:37 am
Up
MikuAuahDark
User
Offline Off
Yes, but it's not recommended. It may give people security/privacy concern of your scripts.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
23.01.20 06:28:33 pm
Up
VADemon
User
Offline Off
You can access any path reachable by your Operating System/User. Privacy concerns: yes, but the worst part for your script is that it will be tied, hardcoded to your system and require changes later. Use relative paths where possible.
To the start Previous 1 Next To the start