[RedEM:RP / VORP / Standalone] RedM Weapon Maintenance

RedM Weapon Maintenance

>> PREVIEW <<

Having trouble with dirty and sooty weapon? This script is solution for all of your pain! This script brings back RDR2 weapon inspecting/cleaning mechanics.


Usage:
Just select weapon in weapon wheel and hit scroll button.

Features:

  • Cleaning shortarm/longarm weapons.
  • Inspecting weapons.
  • Checking weapon stats.
  • Saving stats in database (*only in RedEM:RP/VORP)
  • Gun oil item requirement (*only in RedEM:RP/VORP).
  • Weapon malfunctions (*only in RedEM:RP/VORP).
  • Weapon permanent degradation (*only in RedEM:RP/VORP).

RedEM:RP requirements:

VORP requirements:

Changelog:
v1.1.9b:

  • Updated patches for vorp_inventory v3.6.

v1.1.9:

  • Updated patches for vorp_inventory v3.X.

v1.1.8:

  • Updated patches for vorp_inventory v3.1+.

v1.1.7:

  • Added option to disable weapon cleaning via weapon wheel.

v1.1.6:

  • Added weapon permanent degradation system.
  • Added option to adjust weapon props loading timeout.
  • Tweaked RedEM:RP weapon meta data saving.

v1.1.5:

  • Fixed malfunctions bug that enables shooting jammed weapon on horse/vehicle.

v1.1.4: !!! VORP USERS READ README !!!

  • Added syn scripts compatibility (*experimental feature | *only in VORP | read README.md before using)
  • Added malfunction sound effect (*only in RedEM:RP/VORP).
  • Fixed tranferring weapons bug in VORP.
  • Fixed pickups bug in VORP.
  • Removed AllowPermDegraded and DisableConditionRestoration features.

v1.1.3:

  • Added weapon malfunctions (experimental, *only in RedEM:RP/VORP).
  • Tweaked props saving in VORP integration (this simplify whole integration process). !!! VORP USERS READ README !!!

v1.1.2:

  • Updated VORP compatibility note to suit vorp_inventory (v2.5) changes.

v1.1.1:

  • Fixed gun oil item detection in VORP.

v1.1.0:

  • Added option for disabling weapon condition restoration when cleaning (cleaning only visual effects like dirt/mud/soot, config controlled).

v1.0.9:

  • Added ability to clean permanent degraded weapons (config controlled).
  • Added weapon stats save right after cleaning.
  • Fixed timed weapon save in VORP integration.

v1.0.8:

  • Updated VORP compatibility note, including instructions what need to be modified in vorp_inventory for resource to properlly work (weapon cleaning bug when passing it to other players or dropping it).

v1.0.7:

  • Fixed disappearing maintain button.

v1.0.6:

  • Fixed 0x000FA7A4A8443AF7 execution error.

v1.0.5:

  • Added debug mode with additional prints.
  • Minor changes.

v1.0.4:

  • Fixed native execution error 0x000FA7A4A8443AF7 when using b1491.

v1.0.3:

  • Added VORP support (db save included).
  • Fixed resetting stats in RedEM:RP.

v1.0.2:

  • Added RedEM:RP support (db save included).

v1.0.1:

  • Fixed weapon wheel selection bug

10€ - BUY ON TEBEX
20€ - OPEN SOURCE - BUY ON TEBEX

Code is accessible No
Subscription-based No
Lines (approximately) 330
Requirements None or RedEM:RP/VORP
Support Yes
5 Likes

Are the stats saved in the database or are the weapons also cleaned by relogging?

There is no saving in database at this moment, just plain cleaning mechanic.

New update:

  • Added RedEM:RP support and database saving feature.

VORP is posible in the future?

1 Like

Yes, VORP support is planned in the future updates.

Hello! Can you make a language.lua file for translate the prompts? I would like to translate it to another language.

Prompts are created using native gxt entries, they are already translated to supported by RDR languages.

1 Like
[    c-scripting-core] Creating script environments for redm_weapon_maintenance
[script:redm_weapon_m] Error parsing script @redm_weapon_maintenance/server/main.lua in resource redm_weapon_maintenance: @redm_weapon_maintenance/server/main.lua:1: syntax error near '<\1>'
[    c-scripting-core] Failed to load script server/main.lua.
1 Like

Hey, make sure .fxap file is located in the resource directory.

2 Likes

My fault
It works perfectly.

Is it possible to make it work with VORP?
(I still don’t know which framework to choose, vorp or redem:rp)

vorp support would be nice

1 Like

New update v1.0.3:

  • Added VORP support (db save included)
  • Fixed resetting stats in RedEM:RP
1 Like

VORP:
Does it save the status of the weapons in the DB? do I need an item to clean them?

Yes, it does. Item requirement is optional and can be enabled or disabled in config file.

1 Like


Got this error on redemrp after the update

Also the map is getting disabled
Also the cleaning is working without gun_oil. In the config it is true.
image

Gun oil item requirement is only available in RedEM:RP or VORP, set Config.UseIntegration to redemrp or vorp. Map is getting disabled while player is inspecting weapon as intended. Also error you mentioned above should be fixed with v1.0.4 patch.

I can also clean the weapon without an item, with everything set to true and with UseIntegration vorp is entered.

What is stored in which database table?

All weapon stats(degradation, damage, dirt, soot) are stored in loadout table in existing fields(dirtLevel, mudLevel, conditionLevel, rustLevel). Regarding to item issue, i released new patch v1.0.5 which adds debug mode with additional prints. VORP integration should works fine with vorp_core v1.4 and vorp_inventory v2.1. If issue will still persist send logs with config settings.