Jump to content
Albo1125

Using Albo1125's APIs

Recommended Posts

Arrest Manager's latest update features an API too. It can be accessed using the same concepts as outlined in the Traffic Policer API guide. Enjoy!


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.

Share this post


Link to post
Share on other sites
On 3/11/2016 at 6:12 AM, Albo1125 said:

Arrest Manager's latest update features an API too. It can be accessed using the same concepts as outlined in the Traffic Policer API guide. Enjoy!

The new arrest manager API is great. I'm working on an update to Custom Backup which will integrate with Arrest Manager. Can't wait to get it released! Thanks for the good work Albo. 


[Coming soon!] Coastal Callouts: Upcoming action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

Share this post


Link to post
Share on other sites

Traffic Policer API Changelog:

  • Marked all methods with specific TP enums as obsolete - will be removed in the next patch.
  • Replaced those overloads with overloads that take more generic types (e.g. bool) to improve code stability.
  • Added a new method: MakePedImmuneToAmbientEvents().

The guide has also been updated to make stuff clearer and create a more efficient wrapper class for the new methods.


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.

Share this post


Link to post
Share on other sites

Traffic Policer API Changelog is updated:

  • Cleaned up the API - a documentation XML file for Visual Studio IntelliSense is now included. Please update your reference to the assembly in the designated folder.
  • Added a new API method: SetAutomaticInsuranceChecksEnabled(bool enabled).

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.

Share this post


Link to post
Share on other sites

Added lots of new methods to the Traffic Policer API, mainly to let other developers utilise the new Breathalyzer:

  • SetPedAlcoholLevel, GetRandomOverTheLimitAlcoholLevel, GetRandomUnderTheLimitAlcoholLevel, DoesPedHaveDrugsInSystem, IsPedOverTheAlcoholLimit.

I also updated the PDF file to reflect this can be used for all my APIs.


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.

Share this post


Link to post
Share on other sites

-Changelog:

Full British Policing Script API added:

Indepth API. British Policing Script has an extremely detailed API to allow other plugin authors complete flexibility.

  • Ability to set a ped's British persona with get/set properties and functions.
  • Ability to set a vehicle's Vehicle Records with get/set properties and functions.
  • Full access to the British Persona & Vehicle Records classes.
  • Ability to create a new court case with a determined outcome.
  • Various other powerful features.

 


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.

Share this post


Link to post
Share on other sites

Hi Albo,

 

I'm developing a new callout and would like to integrate it with the court system on LSPDFR+.

From the wrapper example, I saw that there's a need for me to register my callout to be able to use LSPDFR+ functions in my callout.

 

May I get the registration code? Thanks.

 

BR.

Share this post


Link to post
Share on other sites
8 hours ago, BejoIjo said:

Hi Albo,

 

I'm developing a new callout and would like to integrate it with the court system on LSPDFR+.

From the wrapper example, I saw that there's a need for me to register my callout to be able to use LSPDFR+ functions in my callout.

 

May I get the registration code? Thanks.

 

BR.

Call CreateNewCourtCase.

 


Thank you

Share this post


Link to post
Share on other sites
34 minutes ago, epicmrjuan said:

Call CreateNewCourtCase.

 

Thanks for the tips.. I tried that and it works without any verification..

 

I was confused because in the wrapper class, there are 2 methods called AddCountToStatistic & GenerateSecurityGuid which require verification code...

Edited by BejoIjo

Share this post


Link to post
Share on other sites
2 hours ago, BejoIjo said:

Thanks for the tips.. I tried that and it works without any verification..

 

I was confused because in the wrapper class, there are 2 methods called AddCountToStatistic & GenerateSecurityGuid which require verification code...

In the documents above?

 


Thank you

Share this post


Link to post
Share on other sites
8 hours ago, epicmrjuan said:

In the documents above?

 

 

it's in the LSPDFR+ package when you download the latest version under "API reference - Developer Only" folder.

Share this post


Link to post
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...