mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 14:57:27 +08:00
19 lines
434 B
C++
19 lines
434 B
C++
#include "backend/looped/looped.hpp"
|
|
#include "gta/joaat.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void looped::weapons_infinite_ammo()
|
|
{
|
|
if (g->weapons.infinite_ammo) {
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
} |