Files
YimMenuV2/src/game/features/players/troll/GivePlayerAllWeapon.cpp
T
2026-07-18 17:45:14 +03:00

21 lines
528 B
C++

#include "game/commands/PlayerCommand.hpp"
#include "core/commands/Command.hpp"
#include "game/backend/Self.hpp"
#include "game/gta/data/Weapons.hpp"
namespace YimMenu::Features
{
class GivePlayerAllWeapon : public PlayerCommand
{
using PlayerCommand::PlayerCommand;
virtual void OnCall(Player player) override
{
for (auto weapon : g_WeaponHashes)
player.GetPed().GiveWeapon(weapon);
}
};
static GivePlayerAllWeapon _GivePlayerAllWeapon{"giveweapons", "Give Weapons", "Gives all weapons to the player"};
}