=======================================================
GTA V - LSPDFR - Stop The ped
Version 4.9.5.1 | Developed by BejoIjo Productions
BejoIjo Plugins: https://www.bejoijo.com
Copyright (c) 2021 All Rights Reserved
=======================================================

DISCLAIMER: 
-----------
!!!! WE CANNOT BE HELD RESPONSIBLE FOR ANY LOSS OR DAMAGE THAT MAY ARISE AS A RESULT OF THE USE OF OUR WEBSITE OR PLUGINS !!!!


COPYRIGHT NOTICE:
-----------------
!!!!!!!!!!  You may not distribute or exploit this plugin without our express written permission  !!!!!!!!!!!
!!!! Nor may transmit it or store it in any other website or other form of electronics retrieval systems !!!!


PREREQUISITES:
--------------
1. Rage Plugin Hook v1.84
2. LSPD First Response v0.4.8 by G17
3. Rage Native UI v1.6.3.0 by alexguirre
4. Ultimate Backup latest version by BejoIjo
5. CompuLite latest version by BejoIjo


OPTIONAL 3RD PARTY PLUGINS:
---------------------------
1. Traffic Policer latest version by Albo1125 (to have compatibility with older plugins/callouts on ped drug/drunk flags and vehicle registration/insurance status)
2. Police SmartRadio latest version by Albo1125 (to request police transport, tow, coroner, and insurance services)
3. VocalDispatch latest version by turbofandude (if you want voice command to call police transport, tow, coroner, and insurance services)


OVERVIEW:
---------
Basically, "Stop The Ped" is a plugin which contains replacement for the same functionality in vanilla LSPDFR.
But, there's a very annoying bug which sometimes prevents you to stop the ped by holding the "E" key.
This plugin provides almost the same functionality which allows you to stop the peds.
There's also an additional stop at gunpoint feature which have softer arrest gesture (kneel down instead of kissing the ground on vanilla LSPDFR).
Also available are the additional features to pat down the suspect and provide gun permit.


INSTALLATION:
-------------
- Copy the contents of "Plugins\LSPDFR" in this package to: "GTA V directory\plugins\LSPDFR"
- If you haven't had "RageNativeUI.dll" in your "main GTA V folder", don't forget to copy the file from this package
- If you already have newer "RageNativeUI.dll", please keep using it. No need to overwrite the file
- Please open and edit "StopThePed.ini" file, if you want to replace the keyboard key or controller button bindings


HOW TO USE:
-----------
- To stop the nearest ped:
  - When using keyboard, you just need to DOUBLE PRESS the "E" key
  - When using controller, DOUBLE TAP the "DPadRight" controller button
- Come closer to the stopped ped and press "E" key to bring up "Stop The Ped" menu.
- You may close the menu at anytime by pressing "Backspace" or "Esc" key on keyboard, and "B" button on the controller
- And you may bring back the menu (when in range) using "E" key or "DPadRight" button
- To perform stop at gunpoint, just aim the ped with your gun when performing ped stop (aiming while double press "E" key)
- To target a ped as pursuit suspect, just aim the ped with your gun and double tap "T" key or "DPadUp" button
- To open Context Menu, you have to stand near ped or vehicle and press "G" key or controller button "DPadLeft + A"
- To perform "Quick Grab" on any peds, press "LControl + T" key or "DPadLeft + B" button
- To tackle ped during foot pursuit, press "Backspace" key or "B" button
- To boost player sprint/run speed, press "Enter" key or "Y" button (the boost effect will last for 3 seconds by default)
- There's a shortcut key to pat down the stopped ped, search dead body, or search the vehicle (whichever closer to player). Default is "F10" key
- Shortcut to call Police Transport is "8" key


FEATURES:
---------
- Stop the ped:
   * Stop the nearest ped peacefully. (only one ped at a time)
   * Stop the ped at gunpoint. (while aiming your weapon at the ped)

- You may stop the next nearest ped by doing the same command

- Using menu, you may choose:
   * Ask ped's ID card to see their ID and any gun permit when the ped has it
   * Issue warning to the ped which will dismiss him/her
   * Question the Ped
   * Follow Me command to make the stopped ped following you
   * Take the ped from behind (grab). You can also perform "Quick Grab" on any peds using "LControl + T" key or "DPadLeft + B" button
   * Pat Down the ped to search for any illegal items
   * Field Sobriety Test, which consist of: (There's a small chance that an intoxicated ped can pass sobriety tests)
      # Horizontal Gaze Test
      # Walk and Turn Test
      # One Leg Stand Test
   * Conduct Breathalyzer test
   * Conduct Drug swab test
   * Arrest the ped
   * Release the arrested ped.
   * Ask ped to kneel down or get up
   * Request nearby Police Buddy (from Ultimate Backup) to watch the ped
   * Request escort vehicle for the ped (Taxi, Uber, Uber Ride, Ambulance, or Police Transport)

- The stopped ped will have a yellow blip with "human" icon. The arrested ped will have the red blip

- Stop the ped on the vehicle. The ped will comply as long as the vehicle is not moving

- The ped may flee if we attempt to arrest them. You may set the probability in the .ini file

- Notify the player when the ped is intoxicated (alcohol or narcotics)

- When you walk close to any police car, the arrested ped who is following you or being grabbed, might be put into the vehicle using menu

- You may ask the arrested ped to get out of the car and follow you using "E" key

- This plugin will also injects "Stop The Ped" menu into all peds who are arrested using LSPDFR vanilla gunpoint stop or ped stop (configurable in the .ini file)
   * The peds arrested by your police buddies will also be affected  
   * With this feature, you can perform all "Stop The Ped" actions such as "Pat Down Ped" on all arrested peds. Enjoy!
   * While using "Injects Stop The ped menu" above, please make sure to wait a few seconds after the arrest to allow this plugin processing the ped

- Compatible with Computer+. When you give the citation (using Computer+ shortcut key) to stopped ped, they will be dismissed automatically

- Player may ask Police Buddy from "On Scene Backup" to pat down, perform tests, or arrest the suspect (requires "On Scene Backup" plugin).
  Just make sure there's a police buddy watching for the stopped ped, and then select "By My Buddy" on the left/right selector.

- You can trigger a pursuit by just aiming the ped with your gun and double press "T" key or "DPadUp" button

- Using PoliceSmartRadio or Vocal Dispatch, you can call the following services:
   * Police Transport
   * Tow service
   * Coroner service
   * Animal Control
   * Insurance service

- You can also self transport a suspect to nearest jail. When you choose to escort suspect by yourself to cell, 
  your partner will automatically lock the cell door for you after you deliver the suspect. (after you get out of the cell)

- Make realistic ped age based on the model. You will no longer see a 63 years old chick (when checking her ID). (If you install STP, you won't need "Proper Ped Age" anymore)

- Integrated "Ped Calm" function from "Make Peds Calm Again" plugin built into Stop The ped (if you already had MPCA, you may remove it).
  By default, it is not active. To enable it, you have to edit the "EnableCalmPed" flag in StopThePed.ini

- New Context Menu. When you approach and stand next to any Ped or vehicle, you may open this menu by pressing "G" key or controller button "DPadLeft + A".
  With this menu, you can:
   * Ask the ped to go. This is needed if the peds are hanging out and you need to disperse them.
   * Drag the ped body (if the ped is injured or dead and laying on the ground)
   * Perform CPR
   * Search/frisk the dead ped body
   * Search the vehicle
   * Obtain Vehicle plate number (for CompuLite)
   * Conduct Narcotics Field test on suspicious substance
   * Perform Weapon Serial Check
   * Grab your Rifle or Shotgun
   * Grab Traffic Cones to secure the scene
   * Grab Fire Extingusher
   * Call Coroner (for dead ped)
   * Call Animal Control (for wild or dead animal)
   * Call Tow service for abandoned vehicle
   * Call Insurance Service for damaged vehicle
   * Slow down traffic
   * Stop traffic
   * And many more!!!

- You can tackle the ped in pursuit while you chasing them (default key="Backspace" button="B")

- You can run faster by using sprint boost feature so you won't be outrun by those criminals anymore! (default key="Enter" button="Y"). You can also set the boost duration (default 3 seconds) in the .ini file.

- Stop The Ped "Persistency" module will prevent the despawned of nearby dead bodies and empty vehicles by the game engine. This will help you to manage the crime scene with comfort. 
   * The suspect's car shall not be despawned out of no where anymore, so you can still conduct vehicle search or call tow truck to impound it
   * The dead suspect body shall not be despawned and pop off from the scene anymore, so you can still investigate it, call ambulance, or call coroner to take care of them
   * The parked vehicles will also be affected by this "Persistency" module. To maintain game performance, they will still get despawned after very far distance from the player
   * This feature can be disabled/enabled by setting the configurable parameters in the .ini file ("EnableDeadPedPersistence" and "EnableEmptyVehiclePersistence")

- STP has a Traffic Stop Menu with built in customizable questions (in xml file), which can be opened during a pull over. You may open it by pressing the "E" key (the main STP key) or via the context menu
   * Please beware that you should change the vanila LSPDFR traffic stop menu key (default is also "E" key) to avoid collision with STP menu (find it in "\GTA V\lspdfr\keys.ini" file)
   * There's a notification about the observation on the pulled over vehicle, which is automatically displayed once you open the Traffic Stop Menu
   * Using the Traffic Stop menu, you can give the ticket (created using CompuLite) to the driver 

- Narcotics Field Test. This field test can assist you to test suspicious substance whether it's positive for drugs.
   * When the player performing pat down or vehicle search, all items which contain suspicous substance will be collected into the suspicious evidence list automatically
   * To test it, player just have to go to the back of any police vehicle and open the trunk to access narcotics field test menu from the "Context Menu" (default key: "G")
   * The suspicious substance that can be defined in "PatDownItems.xml" and "VehicleItems.xml" (as red or yellow items), might be one of these: powder (white, tan, black, brown), crystal, pill, tablet, capsule, liquid, blotter paper
   * If you are using different language in your search items, you may edit the suspicious substance texts/strings in the StopThePed.ini file
   * There's a small chance (5%) that the substance is not any kind of drugs at all

- New "Advanced Flashlight" game mechanics which replaces the vanilla LSPDFR one with many improvements and upgrades:
   * The flashlight will automatically tilt up and down following the player camera view. When you look up, the flashlight will also pointing upwards.
   * Flashlight will still be in place when player is sprinting
   * Quick switch to your selected weapon without waiting for the animation to finish. (In case some suspect suddenly shooting at you)
   * Advanced Flashlight is using in game GTA V flashlight's torch texture and object meta. Thus, you can customize it freely (change light/torch texture, intensity, distance, corona, etc)
  ATTENTION!!! To make "Advanced Flashlight" works, you should disable Vanilla LSDPFR flashlight by setting "Ambient.DisablePlayerFlashlightOverride" to "True" in the "GTA V\lspdfr\lspdfr.ini"

- STP provides the Taser Laser (laser sight) for your taser/stungun weapon. 
  To toggle it in game, hold "T" key for a few seconds while aiming. (You can enable or disable using "EnableTaserLaser" parameter in the ini file)

- The "Realistic Weapon System" which shall manage your weapon wheel selections realistically.
   * You may only have a rifle of a shotgun at the same time
   * You can grab or store the weapon (rifle/shotgun) from/to the vehicle back trunk or front seat center console
   * You can quickly grab or store weapons while inside the vehicle using the "Context Menu"
   * You may customize your weapons of choice (handgun/rifle/shotgun) with their components in the "StopThePed.ini" file ("RealisticWeaponSystem" section)
   * You may customize the number of ammunitions for each weapons in "StopThePed.ini" file
   * If you're out of ammo, you can go to the back trunk and select "Replenish Ammo-Armor-Health" from the Context Menu, which will also reset your health and armor
   * You may set additional loadouts such as stungun, flashbang, grenade, etc which can be set on the .ini file
   * You can grab fire extinguisher from your car's trunk

- The "Weapon Serial Check" feature allows you to request weapon status check to Dispatch on any weapon items you found after searching peds or vehicles
   * All weapon items which contain one of these strings will be eligible to be checked: handgun, revolver, pistol, SMG, rifle, shotgun, firearm, gun
   * You can also run Weapon Serial Check on weapon dropped by the suspect after you pick it up from the ground
   * To find out the serial number, player just have to go to the back of any police vehicle and open the trunk to access "Evidence Check - Weapon Serial Check" from the "Context Menu" (default key: "G")
   * You may customize the weapons strings (for Weapon Serial Check) in the StopThePed.ini

- The "Realistic PIT Maneuver Physics" will fix bad vehicle physics on LSPDFR 0.4.x which makes it impossible to PIT suspect vehicle. 
   * It will be easier to make suspect vehicle out of control when you perform the PIT maneuver
   * You may disable this feature in the ini file.

- You have the ability to stop a vehicle while player is on foot.
   * To perform traffic stop on foot, you need to activate the slow down or stop the traffic
   * Move closer to the target vehicle and then double press E key (STP main interaction key)
   * After the vehicle is stopped, you may go closer to the right or left side of vehicle to open the Traffic Stop Menu
   * In case the vehicle is stopped in the middle of the road, there's also a new function on the Traffic Stop Menu to ask the driver to drive the vehicle and follow you to a safer place
   * When performing stop vehicle on foot, player will raise a parking wand. This can be enabled/disabled through the configuration parameter in the ini file (OnFootTrafficUseWand)



PAT DOWN THE PED:
-----------------
- The items list and probabilities are configurable in the .ini file.
- It is also compatible with these third party search plugin:
   - Search Warrant by @Darkmyre
   - Police Search by @FtDLulz
- When you previously searched the ped using above plugins, STP pat down will also return the same result. 
- But if the ped hasn't been searched by any of those plugins, STP will randomize the search result by picking from configured items in the .ini file (or from those third party plugins item files)
- If you are a callout developer who want to inject some items into the ped, you may use those third party search plugins API to do it. 
  "Stop The Ped" will automatically recognize and display the items.



API FOR CALLOUTS DEVELOPERS:
----------------------------
A. Pat Down items
   You may inject items into "Ped.Metadata.searchPed" variable (similar with "Search Warrant" plugin)

   Example: myPed.Metadata.searchPed = "~r~handgun~s~, ~y~pocket knife~s~, ~g~wallet~s~";
   Please notice that the ~r~, ~y~, and ~g~ are for text color of red, yellow, and green. Whether ~s~ is for text default color.

B. Vehicle Search items
   You may inject items into vehicle metadata variables (similar with "Search Warrant" plugin)
    - Vehicle.Metadata.searchDriver 
    - Vehicle.Metadata.searchPassenger 
    - Vehicle.Metadata.searchTrunk 

   Example: veh.Metadata.searchDriver = "~r~assault riffle~s~, ~y~machete~s~, ~g~a pair of shoes~s~";
   Please notice that the ~r~, ~y~, and ~g~ are for text color of red, yellow, and green. Whether ~s~ is for text default color.

C. Gun permit
   There are 3 metadata variables you could inject:
    - Ped.Metadata.hasGunPermit -> it's a boolean typed variable (true/false) to determine whether the ped has gun permit or not
    - Ped.Metadata.gunLicense -> it's a string typed variable. You're free to put any string there. Assigned values by this plugin: "Handguns", "Long guns", "Handguns and Long guns"
    - Ped.Metadata.gunPermit -> it's also a string typed variable. You're free to put any string there. Assigned values by this plugin: "Concealed" and "Public"

D. Alcohol and Drug on Peds
   You may inject the ped metadata variables to indicate whether the ped is under alcohol or drug influence
    - Ped.Metadata.stpAlcoholDetected
    - Ped.Metadata.stpDrugsDetected

   Example: myPed.Metadata.stpAlcoholDetected = true;
            myPed.Metadata.stpDrugsDetected = false;

E. You can call PT, Coroner, Tow Truck, Insurance, and Animal Control using "StopThePed.API.Functions" module in "StopThePed.dll" file.
   Please note that to call those APIs, you should have a wrapper static class, similar with all popular plugins API.



Please feel free to contact me through LSPDFR forum or download's comment section for any issue you encountered with this plugin.
Happy patroling! Enjoy! 


SPECIAL THANKS TO:
------------------
- Albo1125 for all your plugins which make LSPDFR very joyful!
- alexguirre for all your open source modules and plugins for LSPDFR
- GeorgeZhang for your open source mods
- manu450 for your time as this plugin's tester


VERSION HISTORY
---------------
v4.9.5.1 (latest)
- Added compatibility support for RPH, LSPDFR, and "GTA V The Contract" updates
- Fixed Bug. The game always crashes to desktop (CTD) when calling Tow Truck

v4.9.5.0
- New Feature. Added ability to stop a vehicle while player is on foot. (Useful when you want to perform DUI checkpoint role playing)
   # To perform traffic stop on foot, you need to activate the slow down or stop the traffic
   # Move closer to the target vehicle and then double press E key (STP main interaction key)
   # After the vehicle is stopped, you may go closer to the right or left side of vehicle to open the Traffic Stop Menu
   # In case the vehicle is stopped in the middle of the road, there's also a new function on the Traffic Stop Menu to ask the driver to drive the vehicle and follow you to a safer place
   # When performing stop vehicle on foot, player will raise a parking wand. This can be enabled/disabled through the configuration parameter in the ini file (OnFootTrafficUseWand)
- Improvement. Tweaked the Stop Traffic and Slowdown Traffic functionality to be more reliable
- Improvement. Coroner will also clean the blood pool on the ground after taking the dead bodies

v4.9.4.7
- Fixed Bug. The translated Gun License and Gun Permit text from localization was not displayed properly
- Improvement. Implemented better system resource management for displaying ped mugshot/headshot, since GTA V would crash when it reaches max limit

v4.9.4.5
- New Feature. Added Language and localization support. You may edit "StopThePed\Localization.ini" file to customize it
- Improvement. Now the Date/Time format (e.g. ped's birthday) should follow Windows Region Settings

v4.9.4.4
- Improvement. Placing traffic cones will not close the context menu, so you don't need to open context menu for the next traffic cone placement.
- Improvement. Changed "Mayer Reagent" to "Scott Reagent" for cocaine testing on Narcotic Field Test
- Improvement. After doing a takedown using STP (double press E while aiming), The option to arrest the ped is now moved to the top as the first option
- Improvement. When the ped driver is refusing to leave the vehicle during a traffic stop, now they may comply after several retries. (you will see the notification for a cue to stop retrying)
- Improvement. When the ped is failed to provide breathalyzer sample, they may provide a successful sample after a few retries. (you will see the notification on when to stop retrying)

v4.9.4.3
- New Feature. Now you can escort and drop off the suspect into the jail while on foot. Make sure to grab the suspect and then move into the orange marker.
  Note: The drop off markers are close to the usual vehicle drop off points. Sometimes they are inside the building.
- New Feature. The door to the jail office, where you see a desk and computer, is now unlocked. This would allow you to do more roleplaying (e.g. open CompuLite tablet to fill in the charges).

v4.9.4.2
- New Feature. You can call "Uber Ride" in addition to "Taxi" and "Uber" escort service. It allows ped's escort using motorcycles. 
  You may configure the desired motorcycles in the ".ini" file under "UberRideModels" parameter.
- New Feature. Added random occurrence (ambient events) when the driver and occupants of pulled over vehicle may flee or attack you.
  You may configure the probabilities in the ".ini" file under "PulledOverResistanceProbability" and "PulledOverAttackProbability" parameters
- Improvement. When the pulled over driver refused to leave the vehicle, they will not be affected by using using STP stop feature (double tap E)
- Improvement. Peds who resist, on foot stop or pull over, may also perform melee attack instead of always using handgun
- Improvement. Added handler to fix the condition where the service vehicle does not come because the vehicle is flipped upside down
- Fixed Bug. When recruiting nearbly cop for transport, cops who have vehicle with less than 4 door should not be assigned

v4.9.4.1
- Hotfix. Added workaround to handle LSPDFR API bug for arresting the ped

v4.9.4.0
- New Feature. You can ask Hunting and Fishing License info on "Ask ID" option from the STP Menu (It helps with "park ranger" or "game warden" kind of role-playing)
- New Feature. You can ask Driver License while the ped is on foot on "Ask ID" option from the STP Menu
- Fixed Bug. Sometimes Context Menu won't open because it says "you are not standing still", when actually you are already standing still
- Fixed Bug. The Weapon Serial Check result shows the registered owner name when the weapon reported as unregistered
- Fixed Bug. Sometimes the suspect that you put into your car is leaving the car when selecting perform weapon check on the menu

v4.9.3.5
- Improvement. Added option on STP menu to dismiss the kneeling suspect after using STP takedown (double press E key while aiming)
- Improvement. Revamped traffic control (stop traffic). Emergency vehicle can pass through and the stopped vehicles will not have their engine revving
- Fixed Bug. When asking single transport for 2 suspects, sometimes they are picked up by two transport units

v4.9.3.4
- New Feature. The "Realistic PIT Maneuver Physics" will fix bad vehicle physics on LSPDFR 0.4.x which makes it impossible to PIT suspect vehicle. 
   # It will be easier to make suspect vehicle out of control when you perform the PIT maneuver
   # You may enable/disable this feature in the ini file.
- Improvement. The native radio animation (left arm reaching left upper chest) will be played flawlessly while character is walking/running, so the right arm will not affected it will swing naturally.

v4.9.3.3
- Fixed Bug. Traffic cones are floating when you deploy them
- Fixed Bug. Sometimes when Animal Control is about to transport the dead animal, it flies to the sky

v4.9.3.2
- New Feature. Added "chance" property to the pat down and vehicle search items xml files. The valid values are: "rare", "normal", "often" (if not set, the chance will be set as "normal" by defaut)
- New Feature. Added "Registered Owner" information on the weapon serial check
- New Feature. During traffic stop, the driver my refuse to exit the vehicle. The probability can be set in the StopThePed.ini file
- Improvement. Tweaked the support vehicle driver AI (coroner, transport, etc) to prevent them from making a U-turn when leaving the scene
- Improvement. Tweaked PIT request to have more chance of being cleared

v4.9.3.1
- Added compatibility support for older LSPDFR version prior to 0.4.8
- Fixed Bug. LSPDFR Crashes when calling support unit. (only happened on older LSPDFR)

v4.9.3.0
- Added compatibility support for LSPDFR 0.4.8
- New Feature. Player will play the Radio dispatch animation from LSPDFR when contacting dispatch. You may select the animation type from LSPDFR interaction menu. (only works with LSPDFR 0.4.8)
- New Feature. With the realistic Weapon System, now you have to grab Fire Extinguisher from the trunk (using Context Menu when standing behind your car)
- New Feature. Added new parameter into the StopThePed.ini file to make sure any Additional Loadouts are set up during the startup (e.g. Stungun, Flashlight, Flares, Nightstick, etc.)
- Improvement. Tweaked the spawn location for supporting units, so no more unit spawned too close to the player
- Fixed Bug. The animal control was too close with the target animal when shooting tranquilizer

v4.9.2.7
- Fixed Bug. When getting result from non registered vehicle check, the owner name is still displayed

v4.9.2.6
- Improvement. If a vehicle has no registration, STP will treat the vehicle plate as counterfeit (fake), which means the system will not find the vehicle owner and insurance record
- Improvement. Tweaked the "Request "PIT" logic to increase the probability of getting clearance
- Fixed Bug. Some options in the STP menu are not working when using the new RageNativeUI version 1.7

v4.9.2.5
- New Feature. Added ability to roll down the front right car window when the player interacting with the traffic stop from the right side 
- Improvement. The "Call Coroner" option on context menu will be displayed without being so close to the dead body
- Fixed Bug. The option to "ask buddy to watch" always appears when you have K9 Partner on your side
- Fixed Bug. Sometimes jail drop off blip icon stays in the map when we call prisoner transport and the suspect is in our vehicle

v4.9.2.4
- New Feature. Added ability to request PIT to dispatch during vehicle pursuit using Stop The Ped "Context Menu". The response will depend on the current traffic density
- New Feature. Added menu entry to switch the police buddy who guarding the suspect. It is useful when you called a female backup unit and want them to guard a female ped. (Requires the latest Ultimate Backup)
- Improvement. The ped mugshot/headshot picture on ped's ID will be rendered without hat or helmet if the ped wearing it

v4.9.2.3
- Improvement. Added marker to help you placing traffic cones
- Improvement. When stopping ped with a helmet (e.g. biker), STP will take the helmet off. (When you dismiss them, STP will put the helmet back)

v4.9.2.2
- Fixed Bug. The small and large tow truck selection does not match with the defined model name in the ini file

v4.9.2.1
- New Feature. Resurrected "CalmPed" feature (from "Make Peds Calm Again"). By default, it is not active. To enable it, you have to edit the "EnableCalmPed" flag in StopThePed.ini
- Improvement. Now you can set multiple towtruck models with comma separated format in the StopThePed.ini
- Improvement. Replenish health-armor-ammo (using context menu while on the back of your vehicle) will also clean your clothes from blood
- Fixed Bug. When there are 2 arrested suspect and only 1 available buddy to be recruited as transport, sometimes they just disappear
- Fixed Bug. Context Menu won't open when there's no ped or entity nearby

v4.9.2.0
- Fixed Bug. Sometimes Transport officer disappeared when the the unit is recruited from Ultimate Backup unit (You'll also need to update to the latest Ultimate Backup)

v4.9.1.9
- Fixed Bug. Traffic stop menu is opened when driver is in other car (e.g. put into our car)
- Fixed Bug. Now you can question ped when player inside the vehicle and ped is on the back seat
- Fixed Bug. Sometimes the developer API to get Vehicle Registration and Insurance do not return the correct value

v4.9.1.8
- New Feature. Now you can also Request Police Transport from Context Menu for any arrested suspects on the scene
- Improvement. Tweaked the transport unit recruiting selection from existing cops, especially for 2 suspects transport request (separate or single transport unit)
- Improvement. When transport arrived and suspect is in our vehicle, the transport officer should open the door for the suspect. (previously suspect just jumped out of the vehicle)
- Improvement. The "TakeOverAllArrests" flag setting in "StopThePed.ini" now only affects Peds arrested by AI cop only
- Improvement. Now you can stop and arrest ARMY Peds using Stop The Ped. (this will help you with military police roleplaying)
- Improvement. Added handling on the patient on stretcher becomes glitchy (e.g. standing). It's usually caused by a conflict with callouts ot other plugins
- Improvement. Added Developer API to request "Ped Check" and "Vehicle Plate Check" to be accessed by other plugins that need it

v4.9.1.7
- New Feature. Add ability to grab traffic cones from your car trunk and deploy them to secure the scene. You can use "Context Menu" to deploy or clear Traffic Cones
- New Feature. Perform Breathalyzer and Drug Swab tests during Traffic Stop while the driver is still in the vehicle
- Improvement. Added new "IntoxicatedPedProbability" parameter in "StopThePed.ini" file to determine the probability whether the ped is drunk or under drug influence (only effective when you don't have Traffic Policer installed)
- Improvement. Added new parameters in "StopThePed.ini" file to determine the probability of vehicle registration and insurance status (only effective when you don't have Traffic Policer installed)
- Improvement. Dispatch Vehicle Check will return the correct vehicle record when it has trailer attached
- Improvement. Added notification when STP Traffic Stop Menu is overlapping with default LSPDFR traffic stop menu
- Fixed Bug. Sometimes weapon dropped by the suspect is not detected and added to evidence box for weapon serial check
- Fixed Bug. Sometimes Dispatch Vehicle Check cannot detect big/long vehicle (bus/truck)
- Fixed Bug. Animal control office won't be taking a tranquilizer shot at the animal from long range

v4.9.1.6
- New Feature. "Weapon Serial Check" feature allows you to request weapon status check to Dispatch on any weapon items you found after searching peds or vehicles
   # All weapon items which contain one of these strings will be eligible to be checked: handgun, revolver, pistol, SMG, rifle, shotgun, firearm, gun
   # You can also run Weapon Serial Check on weapon dropped by the suspect after you pick it up from the ground
   # To find out the serial number, player just have to go to the back of any police vehicle and open the trunk to access "Evidence Check - Weapon Serial Check" from the "Context Menu" (default key: "G")
   # You may customize the weapons strings (for Weapon Serial Check) in the StopThePed.ini
- New Feature. Added "Dipatch Radio Interaction" to "Context Menu": (It also supports Vocal Dispatch)
   # Request Vehicle Plate Check (the vehicle will be added automatically into CompuLite list)
   # Request Ped Status Check (the ped will be added automatically into CompuLite list)
   # Request to End Callout
- New Feature. Added "Dispatch Ped Check" on STP "Ped Action" menu as part of "Dipatch Radio Interaction"
- Improvement. You may customize suspicious substance (for Narcotics Field Test) in the StopThePed.ini. (useful when you are using different language in your search items)
- Improvement. Added developer API for ped drug/drunk flags and vehicle insurance/registration status. Now Stop The Ped can manage those flags internally
- Fixed Bug. The ped's head movement is now sync with the pencil movement, when ped is intoxicated during "Horizontal" gaze test
- Fixed Bug. Sometimes towtruck's livery is changed when it arrives on the scene

v4.9.1.5
- Fixed Bug. Sometimes when asking suspect exit out of car, STP menu pop in and out for a second (glitch)
- Fixed Bug. Duplicate Grab store weapon menu entries when you're inside the car and having partner or suspect in the same vehicle

v4.9.1.4
- New Feature. Introduced new "Realistic Weapon System" which shall manage your weapon wheel selections realistically.
   # You may only have a rifle of a shotgun at the same time
   # You can grab or store the weapon (rifle/shotgun) from/to the vehicle back trunk or front seat center console
   # You can quickly grab or store weapons while inside the vehicle using the "Context Menu"
   # You may customize your weapons of choice (handgun/rifle/shotgun) with their components in the "StopThePed.ini" file ("RealisticWeaponSystem" section)
   # You may customize the number of ammunitions for each weapons in "StopThePed.ini" file
   # If you're out of ammo, you can go to the back trunk and select "Replenish Ammo-Armor-Health" from the Context Menu, which will also reset your health and armor
- Improvement. Added special handling/workaround to a few locations I called "GTA Bermuda Triangle", where you always have issue when spawning entities (e.g in front of Mission Row Police Station and Franklin's old house)
- Fixed Bug. Sometimes the quick search ("F10" key), searches the wrong target. e.g. you want to search the Ped, but it searches vehicle instead

v4.9.1.2
- New Feature. Changed the "Perform CPR" action in Context Menu to "Tend Injured Ped". It will still play CPR animation when the injury is severe (e.g. gunshot wound)
- New Feature. Added support for the new K9 Partner vehicle inspection on Ultimate Backup to detect the contraband
- Improvement. Now you can toggle (open/close) Context Menu using the same key/button (default: "G")
- Improvement. The revived ped is now sitting down instead of standing
- Improvement. You can also call Ambulance from Ultimate Backup which will automatically transport the revived ped
- Improvement. Made Taser Laser toggle only works while player is aiming (to maintain compatibility with Automatic K9 Door)
- Improvement. Player should not be able to open context menu while dragging body
- Fixed Bug. Sometimes the "Gunpoint Pursuit" feature to trigger pursuit (double tap "T" while aiming the target) is not working 
- Fixed Bug. The vehicles are frozen permanently if we switch to fast between stop traffic and slow traffic
- Fixed Bug. Wrong "sitting on the ground" notification
- Fixed Bug. Sometimes, the dead animal  on Animal Control vehicle is floating

v4.9.1.1
- New Feature. "STP Taser Laser" will equip your taser with a laser sight. To toggle it in game, hold "T" key for a few seconds. (You can enable or disable using "EnableTaserLaser" parameter in the ini file)
- New Feature. You have the option in STP menu to ask the ped to sit on the ground (only for non-arrested ped)
- New Feature. You will be able to open questioning menu while the ped is kneeling or sitting on the ground
- Improvement. Now you can call Transport from Context Menu when the arrested ped is inside the vehicle
- Improvement. The naration when driver "failed" to provide ID/document is modified to "refused"
- Improvement. Added chance that a ped is unable to provide valid breath sample after being tested on breathalyzer. (You may set the "BreathalyzerFailedChance" in the ini file)
- Improvement. Allow you to edit the STP static questions on "PedAnswers.xml" file, in case you want to translate them.
- Improvement. Changed STP Menu background
- Fixed Bug. Sometimes the custom questions and traffic stop questions are not loaded properly which causes blank the questioning menu

v4.8.9.7
- New Feature. New "Advanced Flashlight" game mechanics which replaces the vanilla LSPDFR one with many improvements and upgrades.
  !!!ATTENTION!!! To make "Advanced Flashlight" works, you should disable Vanilla LSDPFR flashlight by setting "Ambient.DisablePlayerFlashlightOverride" to "True" in the "GTA V\lspdfr\lspdfr.ini"
  What's in Advanced Flashlight:
   # The flashlight will automatically tilt up and down following the player camera view. When you look up, the flashlight will also pointing upwards.
   # Flashlight will still be in place when player is sprinting
   # Quick switch to your selected weapon without waiting for the animation to finish. (In case some suspect suddenly shooting at you)
   # Advanced Flashlight is using in game GTA V flashlight's torch texture and object meta. Thus, you can customize it freely (change light/torch texture, intensity, distance, corona, etc)
- Improvement. Tweaked down the aggressiveness the service unit's driver when leaving the scene to avoid messing things up
- Improvement. Made a workaround to spawn vehicle when they are not able to spawn due to GTA glitch
- Improvement. Taxi/uber will try to pull over close to the ped instead of stopping in the middle of the road

v4.8.9.6
- Added support for LSPDFR 0.4.7
- Fixed Bug. The STP menu should retain its index when Police Buddy options shows up

v4.8.9.5
- New Feature. Introduced new ambulance (escort) animation that will carry the injured ped on a strecther to the ambulance.
   # The ambulance stretcher prop name is configurable. 
   # If you want to use custom stretcher mod, set the stretcher prop name in a new StopThePed.ini. The new parameter name is "AmbulanceStretcherModel". 
   # If you don't have stretcher mod, STP will use it's own stretcher asset.
- Improvement. Coroner carrying body bag animation is now smoothly rendered on uneven surface (e.g. steep road/terrain). Thanks to Trigonometry :)
- Improvement. Tweaked hand animations when test failed on one leg stand sobriety test.
- Fixed Bug. Sometimes the coroner peds are not stopping when they arrive in position behind the van
- Fixed Bug. Setting parameter "BlipThePed=No" makes takeover arrest failed

v4.8.9.4
- New Feature. Introduced new coroner animation that will carry the dead body to their van and replaced trash bag with GTA V body bag model
- Improvement. Reduced the arrival speed of all backup/service car units to avoid messing up the scene
- Improvement. The double tap "E" or "DPadRight" to stop the ped is disabled while Traffic Stop Menu is open
- Fixed Bug. The suspicious item injected by other plugin or callout to the ped is not recognized as evidence for narcotics field test
- Fixed Bug. The dead ped in vehicle is not detected by context menu to call the coroner unit

v4.8.9.3
- New Feature. The new and written from scratch, my own version of "Field Sobriety Test", which consists of:
   # Horizontal Gaze Test
   # Walk and Turn Test
   # One Leg Stand Test
- New Feature. The new and written from scratch, my own version of "Narcotics Field Test" which can assist you to test suspicious substance whether it's positive for drugs.
   # When the player performing pat down or vehicle search, all items which contain suspicous substance will be collected into the evidence bag automatically
   # To test it, player just have to go to the back of any police vehicle and open the trunk to access narcotics field test menu from the "Context Menu" (default key: "G")
   # The suspicious substance that can be defined in "PatDownItems.xml" and "VehicleItems.xml" (as red or yellow items), might be one of these: powder (white, tan, black, brown), crystal, pill, tablet, capsule, liquid, blotter paper
- New Feature. Added new API and events to support further interactions with other plugins
- New Parameters. Added new parameters in "StopThePed.ini":
   # "ObservationAccuracy" parameter will determine the accuracy (0-100%) of ped observation.
   # "SobrietyTestPassWhenIntoxicated" parameter is the chance (0-100%) of an intoxiated ped to be able to pass the sobriety test
   # "NarcoticsFieldTestPositive" parameter will determine the probability (0-100%) of the suspicious substance to be positive as contraband drugs
- Improvement. Tweaked and refactor source codes to make the plugin lighter
- Improvement. On Traffic Stop Menu, when driver's license is suspended, the ped might still show or failed to show it (random)
- Improvement. During traffic stop, added option to ask All Documents from the driver (License, Registration, and Proof of Insurance)
- Fixed Bug. After searching vehicle, the player could walk and go through the vehicle (as if it is a ghost car)
- Fixed Bug. Sometimes there was animation glitch when asking arrested ped exit from the police car
- Fixed Bug. Sometimes player can grab the ped (using vanilla LSPDFR grab), right after arresting them and that makes the player thrown up to the sky

v4.8.9.1
- Fixed Bug. Found the culprit in the source code which sometimes might cause glitches (e.g. ped is freezing)

v4.8.9.0
- Improvement. On Traffic Stop, the correct ped giving ID animation will now be played when the player is on the right side of vehicle
- Improvement. When still valid, the driver license future expired date now can be more than 1 year
- Improvement. Make the immediate spawn (Hold Backspace) location a bit farther, so it won't mess up the scene
- Fixed Bug. If you call for transport and the suspect is already in the police buddy vehicle, the suspect will stay in the vehicle instead of exit and re-enter it
- Fixed Bug. Sometimes the menus are overlapping when questioning menu is open and police buddy arrived to guard the ped
- Fixed Bug. Now Traffic Stop Menu will be closed immediately when player forces the driver to exit the vehicle using STP double tap "E" key

v4.8.8.0
- Fixed Bug. Questioning ped in the car is now possible when player is also in the car
- Fixed Bug. Ambulance escort vehicle now should follow the model defined in Ultimate Backup XML file (when UB is installed)
- Fixed Bug. Sometimes when running while grabbing, the grabbed ped doesn't perform running animation

v4.8.7.0
- New Feature. Ability to open "Questioning Menu" while suspect is secured inside the police car. You can open it using Context Menu (default is G key). To make this work, the ped should be stopped or arrested first.
- New Feature. Added menu option to issue ticket (only available after creating citation using CompuLite)
- New Parameter. "TrafficControlRadius" parameter in the ini file can be modified to set the radius of traffic control (stop or slowing down traffic/vehicles)
- Improvement. You may still stop the ped (double press "E" key) after you called an escort (taxi, uber, ambulance), in case you change your mind and want them to stay
- Improvement. From STP Main Menu, you may choose to dismiss the ped to vehicle as the driver or passenger
- Improvement. From STP Main Menu, you may choose to "let the ped go" or "keep him staying" when releasing the ped handcuff
- Improvement. Tweaked the codes to make smoother transition on take over arrest event (reduced animation flicker/wiggle)
- Improvement. The service vehicles (coroner, tow truck, escort, etc) now ill have randomize license plate number instead of default "46EEK572"
- Fixed Bug. During traffic stop, if the driver is failed to show license or vehicle document, there will be no animation

v4.8.6.0
- Added support for LSPDFR 0.4.6

v4.8.5.0
- New Feature. Added A new Traffic Stop Menu with built in customizable questions (in xml file), which can be opened during a pull over. 
  You may open it by pressing the "E" key (the main STP key) or via the context menu
  Please beware that you should change the vanila LSPDFR traffic stop menu key to avoid collision with STP menu
- New Feature. The observation notification ofn the pulled over vehicle will be automatically displayed once you open the Traffic Stop Menu
- New Feature. Integration with CompuLite to add the collected ID or vehicle registration during Traffic Stop. They will be populated into Ped or Vehicle Record List in CompuLite
  To enable this feature, you have to set "EnableTrafficStopAutoCollectPedID" or "EnableTrafficStopAutoCollectVehicleTag" parameter in "Compulite.ini" file to "no"
- New Feature. Using Traffic Stop menu, you can give the ticket (created using CompuLite) to the driver after you submit the citation ticket
- Improvement. Tweaked arrest animation on STP takedown at gunpoint (tap E twice while aiming the gun)
- Improvement. When calling Police Transport from STP menu and there's another arrested ped nearby, there will be option menu to choose the transport type
- Improvement. The Question Menu width is increased a bit to accomodate long questions

v4.8.3.0
- New Feature. Added "question submenu/group" support for ped questioning. Checkout the "CustomQuestions.xml" file for examples
- New Feature. Added shortcut key and button to search the nearest stopped ped (pat down), dead ped, and empty vehicle, which is configurable in the .ini file. (default is "F10" key)
- New Feature. Added shortcut key to call Police Transport, which is configurable in the .ini file. (default is "8" key)
- New Feature. Added function in context menu to obtain the plate number from the nearest vehicle, so it would automatically added to CompuLite vehicle list (requires CompuLite plugin)
- Improvement. Improved the way the ped following player when asked to. When player stop, the ped will also stop instead of circling around the player
- Improvement. Now you can also call Animal Control from context menu when wild animal is spotted near your location

v4.8.2.0
- Improvement. After successful CPR on a cop or any public officer, now you can perform Stop The Ped (double press E) and then you may call ambulance for transporting them
- Improvement. Tweaked backup unit AI driving style to be less aggressive and a bit smarter
- IMprovement. Tweaked tow truck arrival and departure to be smoother
- Improvement. Added jail drop off location on seaport area
- Fixed Bug. Sometimes when Police Transport buddy about to grab the suspect and there's object between them, The buddy got stuck in walking animation
- Fixed Bug. Sometimes the when asking driver to step out of the car on traffic stop (using vanilla traffic stop menu), the driver drives away

v4.8.1.0
- Improvement. The CPR pushing chest animation now should be correctly positioned. (e.g. will push on patient's chest area instead of stomach)
- Improvement. Tweaked the police transport (recruited from UB) to drive away passing our car from the left side instead of right
- Improvement. Suppress the shortcut key when player is using onscreen keyboard input (e.g. when typing on LSPDFR computer ped name search)

v4.8.0.0
- Added supports for LSPDFR 0.4.3 
- Improvement. After searching the dead ped and found the ID, the ped will be populated to CompuLite Ped Record list
- Improvement. Various tweakings to have full compatibility with CompuLite
- Improvement. Tweaked the pat down animation to be a bit faster
- Fixed Bug. Sometimes when droping off the suspect to jail and release the cuff, player cannot exit the jail

v4.7.0.0
- Added supports for LSPDFR 0.4.2
- New Feature. The "Dismiss Ped" option from menu will allow you to choose whether the ped can return to the vehicle or force them to leave on foot
- New Feature. Added module to disarm vanilla LSPDFR Stop/Interaction menu, so player can always activate "Stop The Ped" menu (e.g. after asking ped out of vehicle in traffic stop). You may disable/enable it through the "TakeOverAllArrests" parameter in the ini file.
- Improvement. Added special handler to keep persistent the suspect vehicle after the suspect bailed out on foot
- Fixed Bug. Sometimes police transport officer cannot go to driver side because it's occupied by other cop (partner)
- Fixed Bug. Sometimes the animal transported by Animal Control unit is in stand up position on the back of the car
- Fixed Bug. Now the tow vehicle will keep its lightbars on after leaving the scene

v4.6.5.0
- New Feature. Now you can add your own custom questions/answers for the ped in additon to the default one.
  * Make sure to put the new CustomQuestions.xml file into the "GTA V/Plugins/LSPDFR/StopThePed" directory
  * CustomQuestions.xml file is optional. You can still run Stop The Ped without this file.

v4.6.3.0
- Improvement. Tweaked "Persistency" module algorithm to be more effective without sacrificing performance
- Improvement. Added colors to the menu options
- Fixed Bug. Sometimes when player tried to get the arrested ped out of the vehicle, it grabs and throws the ped forcefully from the vehicle

v4.6.2.0
- New Feature. Now you can put the suspect into your car front passenger seat. You can do it on cuffed or uncuffed stopped ped
- Improvement. Added more error handling to the codes to avoid unexpected LSPDFR crashes
- Improvement. The support vehicles (PT, Coroner, Tow Truck, etc.) will not go wrong way 
- Fixed crash. The issue is caused by a conflict with certain callouts when player tried to stop or arrest at gunpoint

v4.6.1.0
- Improvement. Tuned up "Persistency" module to have better processing performance and accuracy
- Fixed Bug. Police Transport and Coroner units are failed to spawn (with conflict error message) when there are no "PoliceTransport" or "Coroner" entries on "Ultimate Backup" DefaultRegions.xml
- Fixed Bug. Sometimes Take over arrest by Police AI does not work on pursuit suspect
- Fixed Crash. Sometimes LSPDFR crash after the suspect got arrested by Police AI on a pursuit situation

v4.6.0.0
- New Feature. Added a new "Persistency" module to prevent the despawned of nearby dead bodies and empty vehicles by the game engine. 
  This will help you to manage the crime scene with comfort. 
  * The suspect's car shall not be despawned out of no where anymore, so you can still conduct vehicle search or call tow truck to impound it
  * The dead suspect body shall not be despawned and pop off from the scene anymore, so you can still investigate it, call ambulance, or call coroner to take care of them
  * The parked vehicles will also be affected by this "Persistency" module. To maintain game performance, they will still get despawned after very far distance from the player
  * This feature can be disabled/enabled by setting the configurable parameters in the .ini file ("EnableDeadPedPersistence" and "EnableEmptyVehiclePersistence")
- Improvement. Now flatbed tow truck will be able to take any non-road vehicles (e.g. planes, helicopters). If it's too big, it will be despawned to simulate the removal
- Improvement. Tuned up some codes to improve responsiveness when opening "Context Menu" (default "G" key)
- Fixed Bug. The K9 backup unit cannot be recruited as Police Transport when they are nearby
- Fixed Bug. Tow truck sometimes cannot attach the tow head to large vehicles (e.g. bus, truck) 


v4.5.6.0
- Improvement. Tuned drivers AI on support units (e.g. Police Transport, Coroner) to avoid crashing into other vehicles
- Adjustment. Changed the color of drop off point cylinder marker to orange (to distinguish it from LSPDFR marker)
- Adjustment. Moved jail drop off location on Rockford Hills, so it's not overlapped with LSPDFR marker
- Fixed Bug. When requesting Police Transport from nearby backup unit, motorbike unit should not respond to that request
- Fixed Crash. When searching the dead body, while coroner arrived and removed the body

v4.5.5.0
- Improvement. Finally made "Traffic Control - Stop Traffic" 100% effective now, while still allowing emergency vehicles to pass through
- Improvement. When you ask nearby backup unit with cop passengers (from Ultimate Backup) as a Police Transport, the cop passengers will return to the vehicle instead of being left behind
- Added API for developers to access and call services within Stop The Ped

v4.5.4.0
- New Feature. When Ultimate Backup is installed, The Coroner and Police Transport (Ped and vehicle) configurations will be taken from Ultimate Backup xml file (requires the latest Ultimate Backup)
- Improvement. Tweaked the spawn logic to find the best spawn point for all backups on a complex location (e.g. highway intersection with underpasses and flyovers)
- Improvement. Tweaked the immediate spawn location to reduce a messy teleporting (when player is holding backspace)
- Improvement. When the dead ped is still in the car, Coroner will take the dead ped out of the car first before performing the coroner procedure
- Improvement. Reduced animation hiccup when the player is grabbing the ped and when the ped is in arrest posture
- Improvement. Made "Stop Traffic Control" more effective while still allowing emergency vehicles to pass through
- Fixed Bug. During CPR procedure and drag the ped body, now the ped will look absolutely dead. (e.g. no more blinking eyes and complaining speeches)
- Fixed Bug. Sometimes when you dismiss peds, they just standing still (do not go away)
- Fixed Rare Crash when stopping the car occupant peds (double tap "E" key) during traffic stop
- Fixed Rare Crash when performing CPR

v4.5.3.1 (latest)
- Improvement. When you perform STP "gunpoint arrest" to a ped holding a weapon, they now should drop the weapon to the ground and then put the hands up
- Improvement. Some variable tunings and tweaks to improve gameplay
Note: If you're upgrading, you just need to replace the old "dll" file with the new one.

v4.5.3.0
- Fixed Bug. Sometimes you cannot go to Jail Drop Off while you already have suspect in the back of the car
- Fixed Glitch. Sometimes the suspects become invisible/disappeared after Police AI arrested them
- Improvements. A bunch of compatibility tweaks and adjustments to support new behaviors of LSPDFR 0.4

v4.5.2.0
- Improved Gameplay. Now Stop The Ped will take over arrested ped triggered by vanilla LSPDFR stop arrest action (holding "E" key)
  Note: If you want to control ped who already controlled by LSPDFR interactive menu (e.g. after you asked traffic stop ped get out of the car), you can control and have STP menu by arresting the ped
- Added Parameter to set the intensity of "sprint boost". The new parameter name is "SprintBoostIntensity". (default value is "50" out of "100")
- Fixed Bug. Sometimes PT officer doesn't have voice when it is an MP freemode ped model

v4.5.1.0
- New Feature. Integration with Ultimate backup to provide the cops and paramedic ped models (which mean they can be an MP freemode ped)
- Fixed Bug. Sometimes context menu cannot detect vehicle to search and tow
- Fixed Typo. The default parameter for "GunpointPursuitModifierKey" in the .ini file should be set to "None"

v4.5.0.0
- New Feature. There's now a headshot (close up photo) of the ped on the "ID Card" when you're asking for the ped's ID
- New Feature. Now, the arrested ped sitting position will be leaning forward when you transport them (also by Police Transport)
- New Feature. Now you can tackle the ped in pursuit while you chasing them (default key="Backspace" button="B")
- New Feature. You can run faster by using sprint boost feature so you won't be outrun by those criminals anymore! (default key="Enter" button="Y"). You can also set the boost duration (default 3 seconds) in the .ini file.
- Improvement. When you call ambulance escort for an arrested ped, the medic will be accompanied by a cop
- Improvement. Better handling to ask arrested ped get out of the vehicle when there are 2 peds inside the vehicle
- Improvement. To enable right menu scroll using controller, the StopThePed button (default "DPadRight") will not close the menu.
- Improvement. Now the arrested ped (with red icon blip) will be dismissed and despawned when they're too far away from player (more than 500 meters)
- Improvement. Player will only shout when double tap "E" key and there's a target ped to stop
- Fixed Crash. Added error handling when the ped is deleted by LSPDFR or other plugins
- Fixed Glitch. Sometime when we try to arrest the stopped ped, it's unsuccessful and the ped walks away

v4.4.3.0
- Fixed Crash during LSPDFR Traffic Stop session caused by proper ped age updates
- Fixed Glitch when drag dead body, sometimes the ped is running away and rejoin pursuit
- Fixed Glitch when performing CPR on dead/injured ped, sometimes the ped is running away and rejoin pursuit

v4.4.2.0
- New Feature. Now "Context Menu" can be accessed when the player is inside a vehicle to call for tow truck, insurance or perform traffic control
- Added support for ultimate backup new felony stop arresting ped mechanics
- Fixed Bug. Sometimes "Animal Control" service doesn't detect and tranquilize vicious animal

v4.4.1.0
- Improved take over arrest timing during pursuit, so the ped will still be counted as arrested in pursuit stat (LSPDFR 0.4)
- Improved the Police Transport officer grabbing and walking when return to vehicle with the suspect
- Tweaked cuff sound timing when arrest at gunpoint using STP.
- Fixed Bug. Sometimes Police Transport officer ans suspect are freezing when they try to go to the PT vehicle
- Fixed Bug. Sometimes the ped that already called for transport can still get another transport
- Fixed Bug. The "Context Menu" cannot be accessed while the player is in "First Person" view mode.
- Fixed Bug. Sometimes arrested ped's handcuff disappeared after getting arrested by player using vanilla LSPDFR takedown (LSPDFR 0.4)
- Fixed Rare Crash when calling a tow truck (with hook) and player just go and leave the scene without waiting until the target vehicle being towed

v4.4.0.0
- Added support for LSPDFR 0.4
- New Feature. Added "vehicle search" function on the "Context Menu" (press "G" to open the menu)
- New Feature. Integrated "Make Peds Calm Again" to be built into Stop The ped (if you already had MPCA, you may remove it). Note: It will be disabled when you run on LSPDFR 0.4
- New Feature. Police Transport officer will grab the suspect with both hands to the PT vehicle
- New Feature. Added ground markers (blue cylinder) on jail drop points to help you find it.

v4.3.2.0
- Fixed Bug. In some RPH version, the traffic control "stop traffic" function doesn't work
- Fixed Bug. Sometimes Coroner cannot detect dead ped after the ped is taken care by UB ambulance medic. This fix requires the latest "Ultimate Backup" plugin
- Added parameter for Animal Control Service to put the incapacitated animal into the back of the truck or not.

v4.3.1.0
- Fixed Crash. Sometimes it crashed when dropping off the arrested suspect to jail by partner
- Fixed Bug. Sometimes Stop The Ped stopped functioning after a few minutes (e.g. no reaction when double tapping "E" key)
- Fixed Bug. Sometimes the arrested ped in the Police Transport is disappear or leaves the vehicle
- Fixed Bug. After player put the suspect into cell and left the jail, suspect was not dismissed (the icon is still existed on the map)
- Fixed Bug. When player put non-arrested ped into police car and get them out of vehicle, the handpose was like arrested ped

v4.3.0.0
- New Feature. Added Traffic Control function to stop or slow down traffic into Context Menu (default "G" key to open) 
- New Feature. Added Animal Control Service which can neutralize wild animal (tranqualize) and handle dead animals
  *if you upgrade from old version, there's a new animal control icon to be copied into PoliceSmartRadio and new "AnimalControlService" entries in StopThePed.ini file
- Improved Gameplay. Made Police Transport and transported suspect return to nearest jail drop off
- Improved Gameplay. Arrested ped will never be despawned when far away from player. Useful when you have to leave arrested ped to chase for another suspect
- Improved Gameplay. Increased (doubled) the effective range for triggering gunpoint pursuit (aiming while double tap "T" key)

v4.2.9.4
- Improvement. In jail drop off, when we have 2 arrested suspects in the car, they will both be escorted at the same time into the jail (by player or by partner)
- Improvement. A few codes tweaking and tuning to improve performance
- Improvement. Make arrival of all supporting backup units less chaotic, especially in a crowded location (mostly in the city area)
- Fixed Bug. San Andreas area (near vespucci beach) is now grouped as city area (Police Transport). (previously it was treated as county area)

v4.2.9.3
- Added Handling. When one of Coroner is dead, the other coroner buddy will still proceed collecting bodies (instead of getting despawned)
- Added handling. When calling Police Transport, but then player releases the suspect, transport unit will not get despawned. They will just be dismissed normally
- Tweak CPR procedure animation by removing the "mouth-to-mouth" CPR animation (because it's no longer required in real life)
- Took out the "CPR successful rate" parameter from the .ini file. The rate is now determined by the cause. For example, knocked out by fist has higher successful rate than shot by firearm

v4.2.9.2
- Added police transport models in the .ini file parameters. The new paramaters are: MaleOfficerCity, FemaleOfficerCity, MaleOfficerCounty, and FemaleOfficerCounty
- Added new .ini file parameter to force transport officer ped spawned using model from vehicles.meta. The parameter name is ForceVehiclesMetaPed
- Fixed bug where sometimes a helicopter pilot cop is recruited as police transport and it caused despawn issue
- Improved plugin stability by adding some crash prevention handlers

v4.2.9.1
- New Feature. Now you are allowed to put the ped into a police vehicle with back passenger doors (e.g. POLICET)
- Improved Key Control. Now you need to DOUBLE TAP the "T" key while aiming on the ped to trigger pursuit ped. I changed it to "double tap" to prevent triggering it by accident. (previously was only single tap)
- Improved Gameplay. Now you can call tow service and insurance when you're inside your police car
- Improved Ped Handlings. Prevent the coroner unit getting despawned because the deadbody is it taken over by other plugin (conflict)
- Fixed External Issue. Sometimes the ped re-enter the vehicle after being stopped (Double tap E key). There's an additional handler to prevent this to happen
- Many game variables and constants tweaks to improve the overall gameplay

v4.2.9.0
- Added confirmation menu when calling "Insurance Service" to take police vehicle
- Make the insurance agent wearing helmet if target vehicle is a bike
- Improved logic to call nearest cop for police transport, so the nearest to the player should be chosen
- Fixed minor bug. Sometimes when calling "Tow Truck", wrong vehicle is selected instead of the one closest to player

v4.2.8.0
- Fixed crash after pat down when player is not using "Search Warrant" as 3rd party search plugin
  (you just need to replace the StopThePed.dll file)

v4.2.7.0
- New Feature. You may put any ped into police car for non-arrested (free) peds. This will allow you to put any victim or witness for safety inside your car. (The ped should be in STP control)
- Added parameter to force search result to be displayed in full screen
- Tweaked the take over arrest during pursuit timing to prevent the Police AI shooting at the ped
- Increased the recruit range of nearby police unit for transporting the suspect
- Added notification information when the transport vehicle is despawned because vehicle is not valid (It must have at least 4 doors)
- Removed unnecessary log entries which might mislead the context when crash happens
- Added handling to prevent another plugin taking over the ped (e.g. stealing player car)
- Added new plugin update checking. The plugin will notify you on loading time if there's a new version available

v4.2.6.0
- New Feature: Added "Search The Body" function to the Context Menu for dead peds. It will give you similar result like "Pat Down Ped"
- Changed the key to teleport the vehicle from "Press Backspace" to "Hold Backspace"
- Improved codes to have the menu quickly available after stopping the ped
- Fixed bug. Sometimes player cannot stop the ped while on the 1st person view

v4.2.5.0
- New Feature: Added "Vocal Dispatch" integration to call police transport, coroner, tow truck, and insurance agent
- New Feature: Coroner unit will also mention the cause of dead
- Improved configuration (in the .ini file) for insurance vehicle model to accept multiple values
- Fixed minor bug. Sometimes if player "issues warning" or "releases arrested ped" from traffic stop driver/passenger, the ped doesn't return to the car.
- Adjusted some in-game constants and variables to improve gameplay

v4.2.0.0
- Added "Quick Grab" to Context Menu and game shortcut ("LControl + T" key or "DPadLeft + B" button)
- Added first aid (CPR) procedure to the Context Menu for dead peds
- Fixed bug. Where LSPDFR vanilla transport still picks the suspect, after STP takes over arrested ped by pursuit AI.
- Fixed glitch. The tow truck driver disappear for a second when tow ruck arrived
- Fixed crash. While player is dragging dead ped and call EMS

v4.1.2.0
- Added controller support for drag body (use your analog stick "left" or "right" to navigate and "down" to stop)
- Added capability to drag fellow cop's dead body
- Added police transport siren and sound states (arrival & departure) in configuration .ini file. (make sure to put the new .ini file)
- Fixed bug. Inconsistent dead body detection when trying to open context menu
- Fixed bug. Sometimes arrested ped get uncuffed when doing pat down
- Fixed bug. The insurance service driver is driving like crazy during arrival

v4.1.1.0
- Fixed rare tow truck crashes caused by GTA V bug. Sometimes the crane on the tow truck is missing which caused the game to crash.
  Finally I found a workaround for this issue and force the crane to exist. Sorry for very quick update.

v4.1.0.0
- New Feature: Drag injured or dead ped body. You may access this feature using new interactive Context Menu. Use "A" or "D" keys to navigate, and "S" key to stop dragging.
- New Feature: Interactive Context Menu on ped and vehicle. When you approach and stand next to any Ped or vehicle, you may open this menu by pressing "G" key or controller button "DPadLeft + A" (configurable).
  With this menu, you can:
  * Stop the ped, which will make the ped stopped and bring the main stop the ped menu
  * Ask the ped to go. This is needed if the peds are hanging out and you need to disperse them
  * Drag the ped body (if the ped is injured or dead and laying on the ground)
  * Call Coroner (for dead ped)
  * Call Tow service for abandoned vehicle
  * Call Insurance Service for damaged vehicle
- Added feature to fix ped age into STP, similar with "Proper Ped Age". (you don't need "Proper Ped Age" plugin anymore)
- Added configurable spawn distance to the .ini file
- Turn off siren and sound when Police Transport vehicle is leaving
- Fixed crash. During configuration file loading, when user's window regional setting is not set to US, STP will crash during loading time
- Fixed bug. The escort vehicle never reached the target ped passenger
- Fixed rare crash when calling PT for 2 suspects in separate vehicles

v4.0.0.0
- New Feature: You can request police transport for the arrested ped (using PoliceSmartRadio)
- New Feature: You can transport the suspect by yourself to the nearest jail
- New Feature: You can request tow service to pick up the vehicle (using PoliceSmartRadio)
  You will be given tow service options: Small or large tow truck, flatbed truck, or small pickup truck (for bike)
- New Feature: You can request coroner service to take the dead bodies (using PoliceSmartRadio)
- New Feature: You can request insurance service to pick up the vehicle (using PoliceSmartRadio)
- New Feature: You may make a ped as pursuit target by pointing a ped with gunpoint and press "T" key or controller's "DPadUp" button
- Fixed minor glitch. When questioning the arrested ped, animation was still played which is not necessary
- Fixed glitch. The Police AI sometimes are shooting at the suspect after he/she got arrested
- Fixed glitch. Traffic cones or barriers from "Traffic Policer" become peds when player performing stop the ped (press "E" key twice)
- Fixed rare crash. When ped is being grabbed and player calling Police Transport

v3.0.0.0
- Major revamped on codes and algorithm for taking over arrested suspect (by AI or player) by implementing "soft ped reset".
  With the new "soft ped reset" method, callouts can still interact with suspect (e.g. callout questioning/speaking) after they got arrested and taken over by STP.
  On the previous version, the callout can not interact with the ped anymore after they got arrested.
- Increased the radius of suspect arrested by Police AI that can be taken over by STP
- Increased the dismissal (despawn) distance on stopped ped or arrested ped.
- There will be no more police unit that come and go after the Police AI arrested the suspect. It's automatically cancelled by STP
- New cool arrest animation when arresting the suspect using STP stop at gunpoint (double tap E while aiming). Try it yourself, you'll like it :)
- Increased the distance slightly of STP stop on gunpoint to improve gameplay
- Fixed minor glitch. When performing breathalyzer & drug swab tests, the player's legs were moving weirdly
- Fixed glitch on grab ped. Sometimes when player is running, the suspect does not follow to run
- Improved grab ped. Make it faster for the player to grab the ped and start moving
- Improved Menu logic. The menu will automatically refreshed on the fly when a buddy is watching the ped

v2.1.2.0
- Fixed bug. Pat down search result is not displayed when ForceUsingOwnItemList is set to "yes" and you have third party search plugin installed

v2.1.1.0
- Added more ped's hands-up variations during pat down process (e.g. hands behind the head)
- Fixed bug. The Stop The Ped item list wasn't loaded properly caused blank pat down results

v2.1.0.0
- New feature. You can question the ped using the STP menu. You can also customize the answers on the .xml file
- New feature. The ped now might flee on other interactions. Previously ped might flee only when getting arrested. (the probability is configurable in the .ini file)
- New feature. When the ped is feeing, they might also attack you. Beware! ;)
- New feature. The Ambulance escort can be requested for arrested ped (ped with cuff).
- The original Stop The Ped item list is now moved to xml file. make sure to put the file into "LSPDFR\StopThePed\" folder
- Added configurable vehicle models for taxi, uber, and ambulance escort (in the .ini file)
- Fixed bug. When "Windows regional setting" is set to a region which uses comma as decimal separator, the breathalyzer won't display the result
- Fixed bug. The escort car sometimes move backwards wildly after being teleported (because of timeout)

v2.0.0.0
- New feature. Stop The Ped is now fully integrated with the item files from "Search Warrant" and "Police Search" plugins. STP will automatically detect and use the item list from those plugins for "Pat Down Ped" results. Enjoy!
- New feature. Added menu options to request escort vehicle for the ped (Taxi, Uber, or Ambulance)
- New option in the menu to request nearby Police Buddy (from "On Scene Backup" or "Traffic Stop Backup" plugin) to watch current stopped ped, when available. (OSB and TSB latest versions are required)
- Added error handling to clean up entities and blips when LSPDFR crashes
- Fixed minor glitch (cut animation) when asking the buddy to release ped from handcuff

v1.8.2.0
- Added new variety of alcohol and drug observation results
- Added and tweaked player speech/shout on variety of situation (e.g. when stopping ped, arresting, etc.)
- Tweaked pat down animation to be slightly faster, so you won't get bored waiting for it ;)
- Improved menu. The "By Myself/By My Buddy" option will only be shown when there's at least one active Police Buddy (from OSB or TSB) watching the ped

v1.8.1.0
- Improved animations when performing breathalyzer and drug swab tests
- Improved player and police buddy position (when using On Scene Backup) during breathalyzer and drug swab test
- Fixed glitch when conducting breathalyzer or drug tests, the suspect might be moving away

v1.8.0.0
- Added new feature to ask Police Buddy from "On Scene Backup" to pat down, perform tests, or arrest the suspect (requires "On Scene Backup" plugin)
- Fixed bug. Sometimes the game clones the ped when we try to arrest them
- Added more pat down items in the .ini file

v1.7.1.0
- Fixed bug. Sometimes STP Menu does not show up even though the ped is already stopped and facing the player
- Fixed bug. Sometimes the blip map icon does not disappear after issuing warning to the ped

v1.7.0.0
- Changed flow. Player now should use menu to put the grabbed or following ped into the police car
- Changed flow. Now after exiting the police car, the ped will be waiting (standing) instead of following the player 
- Improved transition handling when 2 or more stopped peds are standing close each others
- Added configurable alcohol level and unit parameters for breathalyzer result
- Fixed bug. Sometimes vehicles or peds near the stopped ped disappear when player releasing the ped

v1.6.9.1
- Fixed rare freeze issue (probably only on slower PC) after arresting ped using vanilla LSPDFR
- Fixed bug when take over arrests from vanilla LSPDFR didn't work when ped blip is disabled on .ini file setting

v1.6.9.0
- Fixed crash when suspect is entering the car and police transport arrived
- Fixed crash after arresting suspect on code 3 callouts road rage

v1.6.8.0
- Fixed crash while the ped is being grabbed and player calls for police transport
- Improved the way suspect entering the police car from grab or follow positions
- Added optional modifier key and modifier button into the .ini file

v1.6.7.0
- Added new feature to take the ped from behind (grab). The ped will automatically enter the police car when you walk near one
- Added help notifications to inform the player any actions being performed (e.g. arrest, release)

v1.6.6.0
- Added alcohol test (breathalyzer) and drug swab test (drugalyzer). It requires Albo's "Traffic Policer" plugin
- Fixed bug, now you can perform vanilla LSDFR stop at gunpoint while the ped is stopped by STP
- Fixed bug, now you can perform vanilla LSDFR stop at gunpoint while the ped is kneeling after stopped by STP at gunpoint 
- Fixed menu interaction, now it will be closed after asking ped ID

v1.6.5.0
- Fixed bug sometimes the back of the car is floating up when police transport takes the suspect from police car
- Fixed bug when some callouts override stopped ped and make it fleeing, suspect becomes immune to stop the ped command
- Fixed rare bug when sometimes suspect disappears after getting arrested (caused by some callout)
- Improved "follow me" to enter the car. Player will only open the car door if suspect that follows you is not far away
- Tweaked animation speed when performing pat down on suspect's legs

v1.6.4.0
- Added Computer+ compatibility. When you give the citation to a stopped ped, the ped will be dismissed automatically
- Tweaked timing to inject Stop The ped menu when ped is arrested using vanilla LSPDFR
- Fixed bug when injecting gun license and gun permit information

v1.6.3.0
- Fixed rare crashes when arresting suspect using LSPDFR vanilla normal and gunpoint stop
- Fixed dissapearing suspect after got arrested on burglary in progress (code 3 callouts)
- Prevent arrest collision with Police AI when performing Stop The Ped with gunpoint
- Improved compatibility with callouts that use interior scene (e.g. inside the house, apartment, trailer)
- Improved overall stability and smoothness. Enjoy!

v1.6.2.0
- Added new feature to inject Stop The ped menu into all peds who are arrested using LSPDFR vanilla gunpoint stop or ped stop (configurable in the .ini file)
  * The peds arrested by your police buddies will also be affected
  * Now you can perform all Stop The Ped actions such as "Pat Down Ped" on all arrested peds. Enjoy!
  * While using "Injects Stop The ped menu" above, please make sure to wait a few seconds after the arrest to allow this plugin processing the ped
- Improved pat-down animation. It is now performed a slightly faster than previous release
- Fixed bug on the pat down items don't sync on third party search plugins
- Fixed bug when you do a traffic stop and ask the peds to get out using traffic stop menu, the ped doesn't return to the vehicle when you release them
- Fixed crash when arresting suspect on burglary in progress (code 3 callouts)
- Resize blip icon on the map to be slightly smaller

v1.6.1.0
- Added feature if you already arrest the ped but haven't asked for ID, you will get the ID and possible Gun Permit after you pat the ped down
- Added API description for callout developers if they want to inject pat down items or assign gun permit
- Fixed bug sometimes the ped walks away when we pat them down
- Fixed glitch animation when you activated LSPDFR intimidation gesture (right SHIFT)
- Fixed minor glitches and crashes during variety of callouts (e.g. attempted heist, petty theft, etc.)
- Fixed Pat Down items is empty when user is using "Search Warrant" plugin
- Fixed bug when ped is not returning to the vehicle on a traffic stop after we release or give warning
- Many small fixes and adjustments to improve gameplay

v1.6.0.0
- New "Pat Down Ped" (frisk) feature. You may pat down the ped and find any suspicious items. The items list and probablities are configurable in the .ini file. 
  It is also compatible with "Police Search" and "Search Warrant" plugin.
- New "Gun Permit" feature. When you asked the ped's ID and the ped has a gun permit, it will also be displayed on the screen. (the probability is also configurable)
- Revamped menu flow. The menu will no longer auto-popup when approaching the stopped ped. You will need to press "E" key to bring it up
- Keep the door open after the arrested ped enter the police car. You may close the door or leave it open
- Added compatibility with Herocop plugin. You will not be able to stop the partner
- After you release or issue warning to a ped and the ped was a car passenger, if the driver seat on the car is unocupied, he/she will take it and drive the car off.
- Fixed bug on ped blip which sometimes disappear
- Improved the smoothness of the gunpoint stop animation

v1.5.2.0
- Disabled menu when ped is in police vehicle. If you want to have the ped to get out, just press E key when you're near the door
- Fixed player is stuck when pressing E after having the ped get in the vehicle
- Fixed rare crash when arresting ped on variety of situations
- Fixed ped search finds too many items after arresting the ped
- Fixed animation hiccup/glitch when performing stop at gunpoint during foot pursuit and when the ped is falling/getting up

v1.5.1.0
- Much improved Ped stop at gunpoint mode. Added some special workarounds to be compatible with popular callouts
- Added handling to drop the ped's gun on gunpoint stop mode
- Added ability to stop ped at gunpoint while the ped is in vehicle
- Added support and compatibility to Traffic Stop Backup felony stop mode

v1.5.0.0
- Added new gunpoint stop mode to arrest the ped at gunpoint with softer gesture than vanilla LSPDFR (kneel down and hands on the back of the head).
  To perform it, just aim the ped at gunpoint when performing ped stop
- Added handling so you will not be able to stop fleeing peds or peds in combat (on peaceful stop mode)
- Added handling to holster weapon before arresting or releasing ped
- Added condition to only accept menu selection when player is not running
- Fixed bug when fleeing, the ped is still in handcuff
- Fixed bug when releasing ped near a vehicle sometimes the vehicle disappears
- Fixed bug when arresting drunk ped, the arrest animation is not played properly

v1.4.1.0
- Fixed bug where the handcuff is left on the scene when the arrested ped gets transported
- Fixed crash when releasing ped while the ped is inside the jail
- Fixed bug that sometimes the ID card doesn't appear on the ped hand on "Ask Ped ID" command
- Simplify the menu structure by hiding the slots which are not relevant
- Observation report (alcohol & narcotic) will only be announced twice instead of always

v1.4.0.0
- Implement handcuff object which can bee seen visually when the ped is arrested
- Added "Follow Me" command to make the stopped ped following you
- Added ability to have the arrested ped automatically enter the police car when following you (when you walk close to any police car)
- Added ability to ask the arrested ped to get out of the car and follow you using "Follow Me" command
- Added command to make the arrested ped "kneel down" and "get up"
- Improved menu flow to simplify the command (e.g. arrest and release ped will use the same menu slot depends on situation)
- Added ambient curse voice when the ped is released
- Added collision handling on arrested ped which will make the ped get back to the "arrest" animation after being struck and fall

v1.3.0.0
- When stopping ped on vehicle, the ped will return to the vehicle when we release him/her from being previously arrested
- Added feature to make the ped fleeing. You may set the probability in the .ini file
- Added feature to notify the player when the ped is intoxicated (alcohol or narcotics)
- Added ability to bring back the menu (when in range) using "E" key or "DPadRight" button
- Fixed rare bug when asking for ID from drunk ped, the ped sometimes disappears (despawn)
- Make map blip for stopped ped configurable in the .ini file

v1.2.0.0
- Added ability to stop the ped on the vehice (as long as it is not moving)
- Replace the menu sound with the suitable one
- Fixed a bug that sometimes crashes when asking for ID

v1.1.0.0
- Added ability close the menu at anytime by pressing "Backspace" or "Esc" key on keyboard, and "B" button on the controller
- Stop The Ped Menu will not be displayed when the ped is on vehicle

v1.0.0.0
- Initial release
