This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.

19 lines
434 B
C++
Raw Normal View History

2022-02-08 23:06:33 -05:00
#include "backend/looped/looped.hpp"
#include "gta/joaat.hpp"
#include "natives.hpp"
2022-02-08 23:06:33 -05:00
namespace big
{
void looped::weapons_infinite_ammo()
{
if (g->weapons.infinite_ammo) {
2022-02-08 23:06:33 -05:00
Hash weaponHash;
auto const ped = PLAYER::PLAYER_PED_ID();
WEAPON::GET_CURRENT_PED_WEAPON(ped, &weaponHash, 1);
if (weaponHash != RAGE_JOAAT("WEAPON_UNARMED")) {
WEAPON::GIVE_WEAPON_TO_PED(ped, weaponHash, 9999, false, false);
}
}
}
}