mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
21 lines
528 B
C++
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"};
|
|
} |