Jump to content

LSPDFR 0.4.6 API Update


LMS

Recommended Posts

  • Management Team

LSPDFR 0.4.6 brings three minor additions to the API:

 

  • IsPlayerInStationMenu - Returns a value indicating whether the player is currently in any station menu such as selecting an agency or vehicle
  • PlayerWentOnDutyFinishedSelection event - Fired when the player has left the police station menu after going on duty
  • PedSwitchedWeaponAnimated event - Fired when the player switches weapon using the new holster/unholster animation in LSPDFR 0.4.6

 

In addition please note that LSPDFR now targets .NET Framework 4.7 and as such you might be required to re-target in order to compile against the new dll. Please find an updated XML documentation attached.

LSPD First Response.XML

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • The topic was pinned

Apologies as this wasn't initially documented:

  • PedSwitchedWeaponAnimated event - Fired when the player switches weapon using the new holster/unholster animation in LSPDFR 0.4.6

This might be useful for plugins that wish to use SET_PED_DRAWABLE_VARIATION to change the player model so that their weapon appears as holstered or unholstered.  The event is fired at the precise point in the animation when the switch happens (either from null to a weapon or from a weapon to null).

"You tell me exactly what you want, and I will very carefully explain to you why it cannot be."

Link to comment
Share on other sites

  • 4 months later...
  • Management Team
16 hours ago, Pierruno said:

Can you create a full guide how to creat a callout on 0.4.7?

 

There are several tutorials by community members, but at the time we do not have an official tutorial.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • The topic was unpinned

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