generated from YimMenu/YimMenuV2
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
524 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "game/commands/PlayerCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
#include "util/SpawnObject.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
class CagePlayerLarge : public PlayerCommand | ||
{ | ||
using PlayerCommand::PlayerCommand; | ||
|
||
virtual void OnCall(Player player) override | ||
{ | ||
Vector3 coords = ENTITY::GET_ENTITY_COORDS(player.GetPed().GetHandle(), true, true); | ||
coords.z = coords.z - 1.0f; | ||
SpawnObject(0x99C0CFCF, coords); | ||
} | ||
}; | ||
|
||
static CagePlayerLarge _CagePlayerLarge{"cageplayerlarge", "Cage Player(Large)", "Cages the player using a larger cage"}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "game/commands/PlayerCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
#include "util/SpawnObject.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
class CagePlayerSmall : public PlayerCommand | ||
{ | ||
using PlayerCommand::PlayerCommand; | ||
|
||
virtual void OnCall(Player player) override | ||
{ | ||
Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player.GetId()), true, true); | ||
coords.z = coords.z - 1.0f; | ||
SpawnObject(0xF3D580D3, coords); | ||
} | ||
}; | ||
|
||
static CagePlayerSmall _CagePlayerSmall{"cageplayersmall", "Cage Player(Small)", "Cages the player using a smaller cage"}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "game/commands/PlayerCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
#include "util/VehicleSpawner.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
class Circus : public PlayerCommand | ||
{ | ||
using PlayerCommand::PlayerCommand; | ||
|
||
virtual void OnCall(Player player) override | ||
{ | ||
float rot = ENTITY::GET_ENTITY_ROTATION(player.GetPed().GetHandle(), 0).z; | ||
Vector3 coords = ENTITY::GET_ENTITY_COORDS(player.GetPed().GetHandle(), true, true); | ||
SpawnVehicle("wagonCircus01x", coords, rot); | ||
} | ||
}; | ||
|
||
static Circus _Circus{"circus", "Circus", "Cages the player using a circus wagon"}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "core/commands/LoopedCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
|
||
class AntiMelee : public LoopedCommand | ||
{ | ||
using LoopedCommand::LoopedCommand; | ||
|
||
virtual void OnTick() override | ||
{ | ||
for (int i = 0; i < 35; i++) | ||
{ | ||
PED::_SET_PED_TARGET_ACTION_DISABLE_FLAG(Self::PlayerPed, i); | ||
} | ||
} | ||
|
||
virtual void OnDisable() override | ||
{ | ||
for (int i = 0; i < 35; i++) | ||
{ | ||
PED::_CLEAR_PED_TARGET_ACTION_DISABLE_FLAG(Self::PlayerPed, i); | ||
} | ||
} | ||
}; | ||
|
||
static AntiMelee _AntiMelee{"antimelee", "Anti Melee", "Disables getting assaulted by other players."}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "core/commands/LoopedCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
|
||
namespace YimMenu | ||
{ | ||
class FlamingHooves : public LoopedCommand | ||
{ | ||
using LoopedCommand::LoopedCommand; | ||
|
||
virtual void OnEnable() override | ||
{ | ||
PED::SET_PED_CONFIG_FLAG(Self::Mount, 207, true); | ||
} | ||
|
||
virtual void OnTick() override | ||
{ | ||
if (!PED::GET_PED_CONFIG_FLAG(Self::Mount, 207, true)) | ||
PED::SET_PED_CONFIG_FLAG(Self::Mount, 207, true); | ||
} | ||
|
||
virtual void OnDisable() override | ||
{ | ||
PED::SET_PED_CONFIG_FLAG(Self::Mount, 207, false); | ||
} | ||
}; | ||
|
||
static FlamingHooves _FlamingHooves{"flaminghooves", "Flaming Hooves", "Your horse will have flaming hooves."}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "core/commands/Command.hpp" | ||
#include "core/frontend/Notifications.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "util/VehicleSpawner.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
class SpawnBountyWagon : public Command | ||
{ | ||
using Command::Command; | ||
|
||
virtual void OnCall() override | ||
{ | ||
Vector3 dim1, dim2; | ||
MISC::GET_MODEL_DIMENSIONS(MISC::GET_HASH_KEY("wagonarmoured01x"), &dim1, &dim2); | ||
float offset = dim2.y * 1.6; | ||
|
||
Vector3 dir = ENTITY::GET_ENTITY_FORWARD_VECTOR(Self::PlayerPed); | ||
float rot = (ENTITY::GET_ENTITY_ROTATION(Self::PlayerPed, 0)).z; | ||
Vector3 pos = ENTITY::GET_ENTITY_COORDS(Self::PlayerPed, true, true); | ||
|
||
int handle = SpawnVehicle("wagonarmoured01x", | ||
Vector3{pos.x + (dir.x * offset), pos.y + (dir.y * offset), pos.z}, | ||
ENTITY::GET_ENTITY_ROTATION(Self::PlayerPed, 0).z); | ||
VEHICLE::SET_PED_OWNS_VEHICLE(Self::PlayerPed, handle); | ||
} | ||
}; | ||
|
||
static SpawnBountyWagon _SpawnBountyWagon{"spawnbountywagon", "Spawn Bounty Wagon", "Spawns the bounty hunter wagon into the game."}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "core/commands/Command.hpp" | ||
#include "core/frontend/Notifications.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "util/VehicleSpawner.hpp" | ||
|
||
|
||
namespace YimMenu::Features | ||
{ | ||
class SpawnHuntingWagon : public Command | ||
{ | ||
using Command::Command; | ||
|
||
virtual void OnCall() override | ||
{ | ||
Vector3 dim1, dim2; | ||
MISC::GET_MODEL_DIMENSIONS(MISC::GET_HASH_KEY("huntercart01"), &dim1, &dim2); | ||
float offset = dim2.y * 1.6; | ||
|
||
Vector3 dir = ENTITY::GET_ENTITY_FORWARD_VECTOR(Self::PlayerPed); | ||
float rot = (ENTITY::GET_ENTITY_ROTATION(Self::PlayerPed, 0)).z; | ||
Vector3 pos = ENTITY::GET_ENTITY_COORDS(Self::PlayerPed, true, true); | ||
|
||
int handle = SpawnVehicle("huntercart01", | ||
Vector3{pos.x + (dir.x * offset), pos.y + (dir.y * offset), pos.z}, | ||
ENTITY::GET_ENTITY_ROTATION(Self::PlayerPed, 0).z); | ||
|
||
PLAYER::_SET_PLAYER_HUNTING_WAGON(Self::Id, handle); | ||
VEHICLE::SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER(handle, true); | ||
VEHICLE::SET_PED_OWNS_VEHICLE(Self::PlayerPed, handle); | ||
Notifications::Show("Vehicle Spawner", "Wagon Spawned!", NotificationType::Success); | ||
}; | ||
}; | ||
|
||
static SpawnHuntingWagon _SpawnHuntingWagon{"spawnhuntingwagon", "Spawn Hunting Wagon", "Spawns the hunting wagon for the trader role."}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.