Can I pass information from web app to FiveM server via ip:port?

Hi there everyone!

I’ve manage the passing of data from the gameserver to a web application but it’s time to reverse the flow, I need to pass instructions in the other direction that is intended to interact with a resource.

Can this be done via IP:port/instruction? It would be encoded and using a key.

Any insight would be greatly appreciated. Thanks for your time!

You can do it with node.js :wink:

You can also do it in Lua or any other language using SetHttpHandler() native, example in Runcode resource

https://github.com/citizenfx/cfx-server-data/blob/master/resources/runcode/runcode_web.lua#L102