COMMUNITY FORUM

Making an HTTP request

Forum Overview >> Scripting

CategoryScripting
Created02.08.2023 03:46


Dan Casler (Cazineer) 02.08.2023 03:46
Hello,

I am wondering if it's possible to make an HTTP request from within a mod? I don't mean if it's possible in Lua, I mean from within a mod itself?

It's seems require is not usable so I'm drawing a blank as to how to use an HTTP library?

I'm basically looking make API calls on certain in game events so I can see them on a web dashboard.

Thanks!

Bartosz Żebrowski (BartoszZebrowski) 08.08.2024 12:24
I want do the same thing. I need get information form game to another app and I cant find a solution :( .

Dennis Schmitt (Peppie) 13.11.2024 12:36
It's not possible to make a http request. The only way to publish information is to write it into a file periodically and read the file with an external executable. See global market mod.


Note: Log in to post. Create a new account here.