Jump to content
Albo1125

Using Albo1125's APIs

Recommended Posts

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. 

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.

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).

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.

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.

 

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.

 

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?

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×