From 76bb466a54d2a473615e2dfbe382c74448b1550f Mon Sep 17 00:00:00 2001 From: xe1os <39219862+xe1os@users.noreply.github.com> Date: Sat, 4 Jul 2026 13:35:11 +0530 Subject: [PATCH] Add check for CounterStrikeSharp before WeaponPaints install Added check to prevent WeaponPaints installation without CounterStrikeSharp. --- lgsm/modules/command_mods_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lgsm/modules/command_mods_install.sh b/lgsm/modules/command_mods_install.sh index 4e2bc0d95..83458739b 100755 --- a/lgsm/modules/command_mods_install.sh +++ b/lgsm/modules/command_mods_install.sh @@ -148,6 +148,11 @@ if [ "${modcommand}" == "amxmodx" ]; then fn_mod_install_amxmodx_file fi +# Prevent WeaponPaints install without CounterStrikeSharp. +if [ "${modcommand}" == "weaponpaints" ]; then + fn_mod_exist "cssharp" +fi + echo -e "${modprettyname} installed" fn_script_log_pass "${modprettyname} installed."