mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 20:03:17 +08:00
21 lines
442 B
C++
21 lines
442 B
C++
#include "core/commands/Command.hpp"
|
|
#include "game/backend/Self.hpp"
|
|
#include "game/gta/data/Weapons.hpp"
|
|
|
|
namespace YimMenu::Features
|
|
{
|
|
class GiveMaxAmmo : public Command
|
|
{
|
|
using Command::Command;
|
|
|
|
virtual void OnCall() override
|
|
{
|
|
for (auto weapon : g_WeaponHashes)
|
|
{
|
|
Self::GetPed().SetMaxAmmoForWeapon(weapon);
|
|
}
|
|
}
|
|
};
|
|
|
|
static GiveMaxAmmo _GiveMaxAmmo{"givemaxammo", "Give Max Ammo", "Refills your ammo to max."};
|
|
} |