Category | Scripting |
Created | 13.03.2019 02:12 |
PinchTheFarmer | 13.03.2019 02:12 |
---|---|
Is it possible to call an URL from the script ?? I tried lot of things but nothing look like to work. Is it possible to call URL or SQL databases from LUA script ? |
Kevin K. (kevink98) | 13.03.2019 09:10 |
---|---|
yes, but the url must start with 'https://www.farming-simulator.com' an examlpe: local link = "mods.php?lang=en&title=fs2019&filter=org&org_id=65115&page=0#"; openWebFile(link, ""); |
PinchTheFarmer | 13.03.2019 15:51 |
---|---|
Arg yeah i saw this function but i want to call another website :D and it don't have to open web browser , is it possible ? |
Bilbo Beutlin (BBeutlin) | 14.03.2019 01:16 |
---|---|
No - the FS lua engine works in a 'sandbox' (for safety). General system I/O operations are disabled. |
PinchTheFarmer | 16.03.2019 11:56 |
---|---|
Aw yep i saw this, because if IO is enable i could call an URL with a shortcut-file read :D or even execute the explorers from cmd with io ("start"). It will not be possible to run libraries too ? Like i wanted to create a custom DLL who could be encrypted for a mod to call databases , this will not be possible ? :( using loadLibrary function. |
Jos Kuijpers (Unknown) | 25.03.2019 15:01 |
---|---|
No, all of it is not possible. Otherwise you could crazy weird things outside the scope of FS. |
Note: Log in to post. Create a new account here.