Jump to content

DisarmThePed Script for GTA V 1.2.0

This mod allows the player to disarm Peds in the game and make them surrender.
   (1 review)


Compatibility Warning
This plugin depends on Community Script Hook V .NET, which is broken and may cause random crashes in your game. This has been reported to their developers, but no stable release is currently available that fixes this critical problem.
Some users have reported success with their nightly/unstable builds.

1 Screenshot

  • Could contain: person, helmet, clothing, personal protective equipment, human face, indoor, car

🎮 DisarmThePed Mod for GTA V

 

📝 Description

DisarmThePed is a mod for Grand Theft Auto V, directly inspired by the “DropTheWeapon Mod” from Fenix2525WOT.

This mod allows the player to disarm Peds in the game and make them surrender.

The script has been developed with ‘LSPDFR’ usage in mind, so YOU CAN’T DISARM COPS, firefighters, Swat, Army… By pressing “E”, but YOU CAN STILL DISARM THEM BY SHOOTING IN VALID AREAS.

 

🌟 Features

DisarmThePed.Ini File for Script Configuration: Keyboard and Controller Activation, Disarm Chances.

 

Disarm Peds by Shooting on Arms: The player can Disarm any Ped in the game if Shoot the Ped on Arms or Some Upper Body Parts.-

   - (This feature is ‘Under Revision’ Due to the large number of bones GTA has for Ped skeleton and it not always detecting the injured bone correctly.)

 

Disarm by Keyboard(E) or Controller(padRight) Input (Configurable in .ini): The player can Disarm any Ped in the game Aiming at Ped and using Keyboard or Controller.-

    (Disarm Chances Configurables in DisarmThePed.ini)

[DisarmChance]

  BaseChance: This is the base probability of disarming the character when the disarm key is pressed. By default, it is set to 60.

[PedHealth]

  PedLessHealthChance: Indicates how much the disarm probability increases when the health of the targeted character is less than that of the player.

[PedWeapon]

  PedMeleeArmed: How much the disarm probability decreases if the targeted character is armed with a melee weapon.

  PedPistolArmed: How much the disarm probability decreases if the targeted character is armed with a pistol.

  PedHeavyArmed: How much the disarm probability decreases if the targeted character is armed with a rifle, sniper, or shotgun.

[SearchRadius]

  SearchRadius: This is the radius around the targeted character to search for police officers and armed characters to calculate disarm probabilities.

[CopsInRadius]

  MinCopsInRadius: The minimum number of cops in the radius for the disarm probabilities vary.

  CopsInRadiusChances: How much the disarm probabilities increase if there are more cops in the radius.

  NoCopsInRadiusChances: How much the disarm probabilities decrease if there are fewer cops in the radius.

[ArmedPedsInRadius]

  ArmedPedsInRadius: How many armed characters are needed within the search radius for the disarm probabilities to vary.

  ArmedPedsInRadiusChances: How much the disarm probabilities decrease if there are armed characters within the search radius.

 

Make Peds Surrender: After being Disarmed, the Peds will drop their gun to the ground, raise their hands and surrender.

   - Depending on Situation, They Will Stay with Hands Up for a Few Seconds, or They Can Flee Running or Walking if For Example, There is an Active ShootOut.

 

🔮 Future Features

This section will be updated with planned features for future versions of the mod.

 Add .Ini  Debug Mode for User Config Tests.

 

🔧 Installation

Download the latest release of DisarmThePed from this repository.

 

Ensure you have the necessary dependencies installed for GTA V:

(ScriptHookV)

Script Hook V - AB Software Development (dev-c.com) 

(ScriptHookVDotNet3)

https://github.com/scripthookvdotnet/scripthookvdotnet/releases  

 

Dependencies  NOT Included on Download Folder due to Redistribution License.

 

 Place ScriptHookV && ScriptHookVDotNet  on your main GTAV Folder.

 

Place the scripts Folder Files (DisarmThePed.dll && DisarmThePed.ini) in the ‘scripts’ folder of your GTA V directory.

 

🐞 Knowns Bugs / Limitations

Weapon respawn on ped inventory, so they keep Shooting - Some Peds (Like Strip Club Security Guards) Are Hardcoded, so will Spawn a New Weapon After Being Disarmed.

  As The Script is LSPDFR Intended, I Have Not missed too much around with that.

 

Ped Blip or Flick on Ground for a second - Sometimes the Ped can Flick and Blip on The Ground Before or After the Hands Up Animation. Its not very common.

 

📢 Suggestions / Bug Report

¡BUG REPORTS AND SUGGESTIONS FOR MOD IMPROVEMENTS ARE WELCOME!

 

📜 License

Please do not reupload this script without permission.

Edited by JuanjitoDevelop
New Script Version Upload


What's New in Version 1.2.0

Released

  • Probability Logic Enhancement: The probability logic for disarming characters has been overhauled to incorporate multiple factors.
  • Introduction of Probability Calculation Variables:
    • Probability is now calculated based on the type of weapon carried by the targeted character.
    • Probability now varies depending on the number of armed characters within the vicinity.
    • Probability now adjusts according to the number of police officers present nearby.
  • Additional Parameters in INI File: New parameters have been added to DisarmThePed.ini File to allow customization and fine-tuning of the disarming probability calculation process.
  • Bug Fix for Key Press: Solved an issue where holding down the activation key would cause unintended behavior, ensuring smoother gameplay experience.
  • Performance Optimization: The script has undergone performance optimization to improve its efficiency and reduce any potential impact on game responsiveness.

 

These changes aim to deliver a more immersive and refined disarming mechanism while ensuring optimal performance within the game environment.

Future Updates:

No major updates are expected in the near future, apart from bug fixes if reported.

A Debug Mode(Configurable in INI File) is planned to allow players to test configurations.

This Script Code han been entirely made for me, but I need to give Credits to:
@Fenix2525WOT
for his Mod DropTheWeapon, that has been my inspiration for this mod.

You may also like

  • LSPD First Response

    The LSPD First Response modification
    G17 Media

    By G17 Media

    Updated

    • 16.6m
  • Riskier Traffic Stops

    Designed to add more variety to everyday mundane traffic stops
    AstroBurgers

    By AstroBurgers

    Updated

    • 128.9k
  • 686 Callouts

    20 callouts, providing immersive variation to your LSPDFR experience.
    Charlie686

    By Charlie686

    Updated

    • 428.7k
  • Emergency uniforms pack - Law & Order

    https://www.patreon.com/alex_ashfold
    Alex_Ashfold

    By Alex_Ashfold

    Updated

    • 3.8m
  • SuperEvents

    SuperEvents - Adds new ambient events to the game!
    SuperPyroManiac

    By SuperPyroManiac

    Updated

    • 161.1k
  • LSPDFR Enhanced

    Experience a more realistic and structured gameplay with LSPDFR Enhanced
    Vitus27

    By Vitus27

    Updated

    • 6.5k
  • User Feedback

    Recommended Comments

    Hi Everybody. 
    Now The Files Are The correct DisarmThePed.dll

    So You should be able to disarm any ped by shooting them.
    Cops Still cant be disarmed by Pressing E, and this Feature is not planned due the LSPDFR intended usage.

    Controller Support is now broken and I will need some time for fix it.

    Future Updates and Fixes Will be Coming Soon. (If I have Enough Time)
    Suggestions and Bugs Reports are Welcome on Comments Section.

    Edited by Juanjitorl20
    Link to comment
    Share on other sites

    On 4/28/2024 at 4:32 PM, JuanjitoDevelop said:

    Hi Everybody. 
    Now The Files Are The correct DisarmThePed.dll

    So You should be able to disarm any ped by shooting them.
    Cops Still cant be disarmed by Pressing E, and this Feature is not planned due the LSPDFR intended usage.

    Controller Support is now broken and I will need some time for fix it.

    Future Updates and Fixes Will be Coming Soon. (If I have Enough Time)
    Suggestions and Bugs Reports are Welcome on Comments Section.

    Will you ever make an .ini file

    Link to comment
    Share on other sites

    Does the plugin not work? Also, I suggest attaching the RPH log. I can not help, but someone else may be able to if you do those things.

    4 hours ago, ty637 said:

    Im getting a ScripthookV error with this mod could you help me?

    Could contain: text, vehicle, land vehicle, outdoor, wheel, road, screenshot, car, ground

    Spoiler

     

     

    Link to comment
    Share on other sites

    7 hours ago, ty637 said:

    Im getting a ScripthookV error with this mod could you help me?

    Could contain: text, vehicle, land vehicle, outdoor, wheel, road, screenshot, car, ground

    Hi there,

    I'm sorry to hear you're having trouble with the script in your game.
    Let's try to get this sorted out as soon as possible.
    I need you to do me a favor:
    Make sure all dependencies are installed correctly and are updated to the latest versions. You can download them from the links provided in the script description. Also, make sure to include the ScriptHookVDotNet3.dll file.

    I'd appreciate it if you could follow these steps:

    Let me know if you've made any modifications to the DisarmThePed.ini file.

    Temporarily remove any other scripts from your "scripts" folder that aren't DisarmThePed to see if there are conflicts with other mods.

    Try reproducing the error after following these steps.

    Finally, please send me the ScriptHookVDotNet.log and ScriptHookV.log files generated in the main directory of your game after the error occurs.
    This will help me better understand the issue and address it in the best way.

    Thank you!

    Link to comment
    Share on other sites

    I have removed all my scripts but I am still getting the error? I also do have SHV and SHVDN3 installedCould contain: text, outdoor, land vehicle, vehicle, ground, car, wheel, tree I

    Could contain: text, screenshot, software, multimedia software, graphics software, editing, computer icon, computer, display, multimedia, operating system, electronics

    Edited by ty637
    Link to comment
    Share on other sites

    20 hours ago, ty637 said:

    here is my SHV log

    Could contain: text, screenshot, software, multimedia software, graphics software, editing, computer icon, computer, operating system, multimedia



    Do you have ScriptHookVDotNet   nightly version?  Or the Community version?   I am using the nightly version and it works fine.

    Link to comment
    Share on other sites

    8 minutes ago, BlueLine Vibes said:



    Do you have ScriptHookVDotNet   nightly version?  Or the Community version?   I am using the nightly version and it works fine.

    I have Community SHVDN

    Link to comment
    Share on other sites

    2 minutes ago, BlueLine Vibes said:



    That would be the reason why.  Download the nightly version

    is anything different? 

    Edited by ty637
    Link to comment
    Share on other sites

    2 minutes ago, BlueLine Vibes said:



    Yep,  less crashes 😉    Look above the download here,  LSPDFR admin put info about the nightly version and the link for you.

    I have never experienced a crash with the community SHVDN

    Link to comment
    Share on other sites

    the nightly version CTD for me

    Just now, BlueLine Vibes said:



    Glad to hear it.  Then don't use the nightly version then.

    so i cant use this mod it seemed cool:(

    5 minutes ago, BlueLine Vibes said:



    Glad to hear it.  Then don't use the nightly version then.

    sorry for so many comments but im confused it says this mod depends on community scripthookvdotnet

    Link to comment
    Share on other sites

    On 5/8/2024 at 11:17 PM, ty637 said:

    I have removed all my scripts but I am still getting the error? I also do have SHV and SHVDN3 installedCould contain: text, outdoor, land vehicle, vehicle, ground, car, wheel, tree I

    Could contain: text, screenshot, software, multimedia software, graphics software, editing, computer icon, computer, display, multimedia, operating system, electronics

    Based on the error message you provided, it appears that the issue is related to the Notification.PostTicker() function used in the script to display in-game notifications, such as "DisarmThePed has been Loaded!". It's worth noting that this function replaces Notification.Show() in newer versions of the game.

    If your Grand Theft Auto V version isn't up-to-date, it's possible that it still uses the Notification.Show() method, which causes the error as it can't find the method used by my script.
    Please make sure that you have the game updated to the latest available version.

    The script has been developed using the Community version of ScriptHookVDotNet3, but it's also compatible with the nightly version, and you shouldn't notice any difference in functionality.

    To help us better understand the problem, could you provide more details about when exactly the error occurs?
    Does it happen when loading the script, when attempting to disarm the ped, or after disarming it?
    Additionally, could you please provide the full version of your GTA V game?

    Link to comment
    Share on other sites

    currently fucking around in gta and i noticed that when it says ped disarm one of the cops would fly out of the vehicle or exit as a standstill

    Link to comment
    Share on other sites

    On 5/10/2024 at 6:22 PM, JuanjitoDevelop said:

    Based on the error message you provided, it appears that the issue is related to the Notification.PostTicker() function used in the script to display in-game notifications, such as "DisarmThePed has been Loaded!". It's worth noting that this function replaces Notification.Show() in newer versions of the game.

    If your Grand Theft Auto V version isn't up-to-date, it's possible that it still uses the Notification.Show() method, which causes the error as it can't find the method used by my script.
    Please make sure that you have the game updated to the latest available version.

    The script has been developed using the Community version of ScriptHookVDotNet3, but it's also compatible with the nightly version, and you shouldn't notice any difference in functionality.

    To help us better understand the problem, could you provide more details about when exactly the error occurs?
    Does it happen when loading the script, when attempting to disarm the ped, or after disarming it?
    Additionally, could you please provide the full version of your GTA V game?

    as soon as i load into the game the script fails i have the latest version of SHVDN and GTA5 but it just dosent work maybe you could give me a version without the message and i will see if it works?

    Edited by ty637
    Link to comment
    Share on other sites

    On 5/10/2024 at 6:22 PM, JuanjitoDevelop said:

    Based on the error message you provided, it appears that the issue is related to the Notification.PostTicker() function used in the script to display in-game notifications, such as "DisarmThePed has been Loaded!". It's worth noting that this function replaces Notification.Show() in newer versions of the game.

    If your Grand Theft Auto V version isn't up-to-date, it's possible that it still uses the Notification.Show() method, which causes the error as it can't find the method used by my script.
    Please make sure that you have the game updated to the latest available version.

    The script has been developed using the Community version of ScriptHookVDotNet3, but it's also compatible with the nightly version, and you shouldn't notice any difference in functionality.

    To help us better understand the problem, could you provide more details about when exactly the error occurs?
    Does it happen when loading the script, when attempting to disarm the ped, or after disarming it?
    Additionally, could you please provide the full version of your GTA V game?

    i will delete and reinstall the game and see if that works

    Link to comment
    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
    ×
    ×
    • Create New...