• Добавляем различные ресурсы в продажу.В архиве сохраняем контакты для получения или готовый ресурс. Вывод средств 20%.

RageMP мануал Фикс прикладов, и урона от оружия (WEAPON DAMAGE RAGE:MP 1.1)

Admin

Admin

Предводитель
Админ
Ставить в index.js любой из вариантов и проверяйте

1 вариант :
JavaScript:
const MeleeWeapon: string[] = ["weapon_dagger", "weapon_bat", "weapon_bottle", "weapon_crowbar", "weapon_unarmed", "weapon_flashlight", "weapon_golfclub",
    "weapon_hammer", "weapon_hatchet","weapon_knuckle","weapon_knife","weapon_machete","weapon_switchblade","weapon_nightstick","weapon_wrench","weapon_battleaxe","weapon_poolcue","weapon_stone_hatchet"]

setInterval(() => {
  MeleeWeapon.map(name => {
    let hash = mp.game.joaat(name.toUpperCase());
    if (mp.game.invoke(methods.HAS_PED_GOT_WEAPON, mp.players.local.handle, hash, false)) {
      mp.game.controls.enableControlAction(32, 142, true);
    } else {
      mp.game.controls.disableControlAction(32, 142, true);
    }
  });

}, 1000);
mp.game.player.setWeaponDamageModifier(0.3);
mp.game.player.setMeleeWeaponDefenseModifier(-2);

2 вариант :
JavaScript:
const MeleeWeapon = ["weapon_dagger", "weapon_bat", "weapon_bottle", "weapon_crowbar", "weapon_unarmed", "weapon_flashlight", "weapon_golfclub",
"weapon_hammer", "weapon_hatchet","weapon_knuckle","weapon_knife","weapon_machete","weapon_switchblade","weapon_nightstick","weapon_wrench","weapon_battleaxe","weapon_poolcue","weapon_stone_hatchet"]
setInterval(() => {
MeleeWeapon.map(name => {
let hash = mp.game.joaat(name.toUpperCase());
if (mp.game.invoke(0x39, mp.players.local.handle, hash, false)) {
mp.game.controls.enableControlAction(32, 142, true);
} else {
mp.game.controls.disableControlAction(32, 142, true);
}
});
}, 1000);
mp.game.player.setWeaponDamageModifier(0.3);
mp.game.player.setMeleeWeaponDefenseModifier(-2);
 
Верх