Hello,
I am currently building a Custom CAD/MDT System and I was thinking that I would like to have a feature where in a FiveM server a user can do a /911 or /panic command and would send some information into my CAD such as their location and more.
How would I go about doing this?
Any help is appreciated!
Thanks!
Sincerely,
Dragon Busters
2 Likes
You would have to add an endpoint api to your bubbleapps. When you do /911 in game, you need to save their position to a variable. Make a web request to your bubbleapps app and make it create a new thing, calls, 911. and pass their position in the request.
1 Like
How would I do the in-game things? I am familiar with the Bubble stuff, but not the FiveM part. Can you help with that?
1 Like
something somewhat like this
untested
function send911(name, message, location)
PerformHttpRequest("bubbleappsendpointurl", function(err, text, headers) end, 'POST', json.encode({user = name, text = message, loc = location}), { ['Content-Type'] = 'application/json' })
end
2 Likes
Do you mind showing me an example of what the API Endpoint Workflow would look like in Bubble? I actually never have used API Endpoint in Bubble.
the url would be something like this
https://appname.bubbleapps.io/api/1.1/wf/endpoint/911Recieving
perhaps this would help https://www.youtube.com/watch?v=RbQCCZfdzes
well i kinda skimmed thru that video and it’s for api workflows but similar thing.
you check this app exposes and endpoint and call it 911Recieving etc.
Okay. I’ll check it out! Thanks for the help!
1 Like
yes i would like the same thing because on the cad that i bought doesnt have a /panic? can someone help! thanks