Trigger events from website

Is it possible to trigger events in fivem from a webserver or website.
I want to make a police cad, that is based on an external website, but I can’t seem to think about any possible ways to trigger event in fivem, like chat messages, notifications, or even giving bills, from a website.
Is it possible? And if so, than how?
Thank your for your answers in advance

You can use SetHttpHandler to create an endpoint on your server and then make a http request from your webserver to it, for an example see the runcode resource.


I use this to connect my discord bot to fivem via http requests, its gonna be the same for you with your CAD

@ Jasha Thanks for sharing that will use it to manage my server on the web!