Jump to content

Accepting a Callout via a Plugin


turbofandude

Recommended Posts

Is there a way for a plugin to accept a callout from within a plugin? I figured a possible way would be sending a keypress. In that case, what is the proper way to use AutoIT with a plugin DLL? (I tried but was unable to get the assemblies to load).

Collin Biedenkapp

Unit S17 | Professional Programmer | VocalDispatch Developer

Link to comment
Share on other sites

Only LSPDFR can accept callouts, it goes without saying that any callout created using the API gets registered and then loaded by LSPDFR. If you don't have LSPDFR for example, you wont have any working API plugins.

A third party plugin or another API plugin does not have to ability to accept callouts from API plugins. The only way you could do it is to try and send a keypress event but there is no guarantees that will work. In fact I'd be fairly certain it wouldn't work at all.

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

Link to comment
Share on other sites

Functions.StartCallout() may help.

AutoIt can be used too but I don't suggest you do this in this way. Why would you want to force the user to accept a random callout?

Edited by Albo1125

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

Link to comment
Share on other sites

17 minutes ago, Albo1125 said:

Functions.StartCallout() may help.

AutoIt can be used too but I don't suggest you do this in this way. Why would you want to force the user to accept a random callout?

Oh wow that's a thing? Man I'm soooo out of the loop.

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

Link to comment
Share on other sites

15 hours ago, Albo1125 said:

Functions.StartCallout() may help.

AutoIt can be used too but I don't suggest you do this in this way. Why would you want to force the user to accept a random callout?

 

14 hours ago, LukeD said:

Oh wow that's a thing? Man I'm soooo out of the loop.

That let's you trigger a callout without needing to spam X, lol. Very useful when testing. :whistling:

You still have to accept it, though. 

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

Link to comment
Share on other sites

20 hours ago, turbofandude said:

It wasn't for a random callout - it was so I could allow the user to verbally accept callouts with this: 

 

I saw, great idea :smile:

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

Link to comment
Share on other sites

  • 5 weeks later...

How would I find the names of event triggers in mods such as Traffic Policer, Police Toolbox, Arrest Manager, etc in order to add them to mods such as VocalDispatch or The Menu??? I've been farting around with xml for about a week and understand the basics but I don't know how/where to find the triggers.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...