mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +08:00
chore: Use override keyword in commands to make sure virtual funcs are properly overwritten (#1897)
This commit is contained in:
parent
adefa3bc7e
commit
c44cd0f078
@ -12,7 +12,7 @@ namespace big
|
|||||||
return CommandAccessLevel::NONE;
|
return CommandAccessLevel::NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
ctx->report_error("Money and recovery options are not supported in YimMenu to keep Rockstar/Take Two happy. You can try Kiddion's Modest Menu (free) instead, but make sure to only get it from UnknownCheats.me, the rest are scams and may contain malware");
|
ctx->report_error("Money and recovery options are not supported in YimMenu to keep Rockstar/Take Two happy. You can try Kiddion's Modest Menu (free) instead, but make sure to only get it from UnknownCheats.me, the rest are scams and may contain malware");
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 3;
|
const size_t arg_count = 3;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::NetworkBail,
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::NetworkBail,
|
||||||
|
@ -13,12 +13,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (!g_player_service->get_self()->is_host() || !player->get_net_data())
|
if (!g_player_service->get_self()->is_host() || !player->get_net_data())
|
||||||
return;
|
return;
|
||||||
|
@ -12,12 +12,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (gta_util::get_network()->m_game_session_ptr->is_host())
|
if (gta_util::get_network()->m_game_session_ptr->is_host())
|
||||||
{
|
{
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (!scripts::force_host(RAGE_JOAAT("freemode")))
|
if (!scripts::force_host(RAGE_JOAAT("freemode")))
|
||||||
{
|
{
|
||||||
|
@ -7,12 +7,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (!g_player_service->get_self()->is_host())
|
if (!g_player_service->get_self()->is_host())
|
||||||
{
|
{
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 15;
|
const size_t arg_count = 15;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::InteriorControl, (int64_t)self::id, (int64_t)(int)-1};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::InteriorControl, (int64_t)self::id, (int64_t)(int)-1};
|
||||||
|
@ -13,12 +13,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
packet msg{};
|
packet msg{};
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::TOXIC;
|
return CommandAccessLevel::TOXIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (!scripts::force_host(RAGE_JOAAT("freemode")))
|
if (!scripts::force_host(RAGE_JOAAT("freemode")))
|
||||||
{
|
{
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
globals::clear_wanted_player(player->id());
|
globals::clear_wanted_player(player->id());
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
int id = player->id();
|
int id = player->id();
|
||||||
if (scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[id].PropertyData.Index != -1)
|
if (scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[id].PropertyData.Index != -1)
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
g_pickup_service->give_player_health(player->id());
|
g_pickup_service->give_player_health(player->id());
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
g_pickup_service->give_armour(player->id());
|
g_pickup_service->give_armour(player->id());
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
g_pickup_service->give_player_health(player->id());
|
g_pickup_service->give_player_health(player->id());
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
scr_functions::join_ceo({player->id(), 0, false, false});
|
scr_functions::join_ceo({player->id(), 0, false, false});
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
ped::steal_identity(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()));
|
ped::steal_identity(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()));
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
ped::steal_outfit(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()));
|
ped::steal_outfit(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()));
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
auto leader = scr_globals::gpbd_fm_3.as<GPBD_FM_3*>()->Entries[player->id()].BossGoon.Boss;
|
auto leader = scr_globals::gpbd_fm_3.as<GPBD_FM_3*>()->Entries[player->id()].BossGoon.Boss;
|
||||||
|
|
||||||
|
@ -9,13 +9,13 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
toxic::blame_explode_player(player, player, EXP_TAG_SUBMARINE_BIG, 9999.0f, true, false, 9999.0f);
|
toxic::blame_explode_player(player, player, EXP_TAG_SUBMARINE_BIG, 9999.0f, true, false, 9999.0f);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 3;
|
const size_t arg_count = 3;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::ForceMission, (int64_t)self::id, 0};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::ForceMission, (int64_t)self::id, 0};
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
for (auto& weapon : g_gta_data_service->weapons())
|
for (auto& weapon : g_gta_data_service->weapons())
|
||||||
WEAPON::GIVE_WEAPON_TO_PED(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), weapon.second.m_hash, 9999, FALSE, FALSE);
|
WEAPON::GIVE_WEAPON_TO_PED(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), weapon.second.m_hash, 9999, FALSE, FALSE);
|
||||||
@ -26,12 +26,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
g_player_service->iterate([](auto& plyr) {
|
g_player_service->iterate([](auto& plyr) {
|
||||||
for (auto& weapon : g_gta_data_service->weapons())
|
for (auto& weapon : g_gta_data_service->weapons())
|
||||||
|
@ -18,12 +18,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[player->id()].PropertyData.Index != -1)
|
if (scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[player->id()].PropertyData.Index != -1)
|
||||||
{
|
{
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
auto vehicle = player->get_current_vehicle();
|
auto vehicle = player->get_current_vehicle();
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (!player->get_ped())
|
if (!player->get_ped())
|
||||||
return;
|
return;
|
||||||
|
@ -8,13 +8,13 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (auto ped = player->get_ped())
|
if (auto ped = player->get_ped())
|
||||||
if (auto net_object = ped->m_net_object)
|
if (auto net_object = ped->m_net_object)
|
||||||
g_pointers->m_gta.m_request_ragdoll(net_object->m_object_id);
|
g_pointers->m_gta.m_request_ragdoll(net_object->m_object_id);
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
for (auto& [_, weapon] : g_gta_data_service->weapons())
|
for (auto& [_, weapon] : g_gta_data_service->weapons())
|
||||||
WEAPON::REMOVE_WEAPON_FROM_PED(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), weapon.m_hash);
|
WEAPON::REMOVE_WEAPON_FROM_PED(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), weapon.m_hash);
|
||||||
|
@ -11,12 +11,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 8;
|
const size_t arg_count = 8;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::SendTextLabelSMS, self::id};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::SendTextLabelSMS, self::id};
|
||||||
|
@ -15,12 +15,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 8;
|
const size_t arg_count = 8;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::SendTextLabelSMS, self::id};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::SendTextLabelSMS, self::id};
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 9;
|
const size_t arg_count = 9;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::Teleport, self::id, (int64_t)player->id(), (int64_t)(int)-1, 1, (int64_t)_args.get<int64_t>(0), 1, 1, 1};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::Teleport, self::id, (int64_t)player->id(), (int64_t)(int)-1, 1, (int64_t)_args.get<int64_t>(0), 1, 1, 1};
|
||||||
|
@ -8,12 +8,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
float max = 1e+38f;
|
float max = 1e+38f;
|
||||||
auto coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), FALSE);
|
auto coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), FALSE);
|
||||||
|
@ -9,12 +9,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 6;
|
const size_t arg_count = 6;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TeleportToWarehouse, self::id, (int64_t)player->id(), 1, (int64_t)_args.get<int>(0)};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TeleportToWarehouse, self::id, (int64_t)player->id(), 1, (int64_t)_args.get<int>(0)};
|
||||||
|
@ -13,7 +13,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual std::optional<command_arguments> parse_args_p(const std::vector<std::string>& args, const std::shared_ptr<command_context> ctx)
|
virtual std::optional<command_arguments> parse_args_p(const std::vector<std::string>& args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const auto level = std::atoi(args[0].c_str());
|
const auto level = std::atoi(args[0].c_str());
|
||||||
|
|
||||||
@ -28,12 +28,12 @@ namespace big
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const auto wanted_level = _args.get<int>(0);
|
const auto wanted_level = _args.get<int>(0);
|
||||||
if (player->id() == self::id)
|
if (player->id() == self::id)
|
||||||
|
@ -11,13 +11,13 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 8;
|
const size_t arg_count = 8;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TransactionError,
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TransactionError,
|
||||||
(int64_t)self::id,
|
(int64_t)self::id,
|
||||||
|
@ -13,12 +13,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 25;
|
const size_t arg_count = 25;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::StartScriptBegin, (int64_t)self::id};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::StartScriptBegin, (int64_t)self::id};
|
||||||
|
@ -8,12 +8,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const size_t arg_count = 3;
|
const size_t arg_count = 3;
|
||||||
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TriggerCEORaid, (int64_t)self::id, 0};
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::TriggerCEORaid, (int64_t)self::id, 0};
|
||||||
|
@ -10,12 +10,12 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::AGGRESSIVE;
|
return CommandAccessLevel::AGGRESSIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
auto id = player->id();
|
auto id = player->id();
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
teleport::bring_player(player);
|
teleport::bring_player(player);
|
||||||
}
|
}
|
||||||
@ -20,7 +20,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
for (auto& player : g_player_service->players())
|
for (auto& player : g_player_service->players())
|
||||||
g_fiber_pool->queue_job([player]() {
|
g_fiber_pool->queue_job([player]() {
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
troll::set_bounty_on_player(player, 10000, g.session.anonymous_bounty);
|
troll::set_bounty_on_player(player, 10000, g.session.anonymous_bounty);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
teleport::to_player(player->id());
|
teleport::to_player(player->id());
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Vehicle veh =
|
Vehicle veh =
|
||||||
PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_player_service->get_selected()->id()), false);
|
PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_player_service->get_selected()->id()), false);
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(ped, false);
|
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(ped, false);
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped player_ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped player_ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(player_ped, false);
|
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(player_ped, false);
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Entity ent = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Entity ent = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
int lockStatus = VEHICLE::GET_VEHICLE_DOOR_LOCK_STATUS(player->id());
|
int lockStatus = VEHICLE::GET_VEHICLE_DOOR_LOCK_STATUS(player->id());
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), FALSE);
|
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id()), FALSE);
|
||||||
if (veh == 0)
|
if (veh == 0)
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
if (PED::IS_PED_IN_ANY_VEHICLE(ped, false))
|
if (PED::IS_PED_IN_ANY_VEHICLE(ped, false))
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
if (!PED::IS_PED_IN_ANY_VEHICLE(ped, true))
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (PED::IS_PED_IN_ANY_VEHICLE(player->id(), false))
|
if (PED::IS_PED_IN_ANY_VEHICLE(player->id(), false))
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(ped, false);
|
Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(ped, false);
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using player_command::player_command;
|
using player_command::player_command;
|
||||||
|
|
||||||
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(player_ptr player, const command_arguments& _args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
Ped ped = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player->id());
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
for (const auto& [_, weapon] : g_gta_data_service->weapons())
|
for (const auto& [_, weapon] : g_gta_data_service->weapons())
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
entity::clean_ped(self::ped);
|
entity::clean_ped(self::ped);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if(g_local_player && g_local_player !=nullptr && !g.self.force_wanted_level)
|
if(g_local_player && g_local_player !=nullptr && !g.self.force_wanted_level)
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
std::string mpPrefix = local_player::get_mp_prefix();
|
std::string mpPrefix = local_player::get_mp_prefix();
|
||||||
STATS::STAT_SET_INT(rage::joaat(mpPrefix + "NO_BOUGHT_YUM_SNACKS"), 30, true);
|
STATS::STAT_SET_INT(rage::joaat(mpPrefix + "NO_BOUGHT_YUM_SNACKS"), 30, true);
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
ENTITY::SET_ENTITY_HEALTH(self::ped, PED::GET_PED_MAX_HEALTH(self::ped), 0);
|
ENTITY::SET_ENTITY_HEALTH(self::ped, PED::GET_PED_MAX_HEALTH(self::ped), 0);
|
||||||
PED::SET_PED_ARMOUR(self::ped, PLAYER::GET_PLAYER_MAX_ARMOUR(self::id));
|
PED::SET_PED_ARMOUR(self::ped, PLAYER::GET_PLAYER_MAX_ARMOUR(self::id));
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
class repairpv : command
|
class repairpv : command
|
||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
vehicle::repair(self::veh);
|
vehicle::repair(self::veh);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::merry_weather::request_boat_pickup();
|
mobile::merry_weather::request_boat_pickup();
|
||||||
}
|
}
|
||||||
@ -18,7 +18,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::ceo_abilities::request_ballistic_armor();
|
mobile::ceo_abilities::request_ballistic_armor();
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_avenger();
|
mobile::services::request_avenger();
|
||||||
}
|
}
|
||||||
@ -38,7 +38,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_kosatka();
|
mobile::services::request_kosatka();
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_mobile_operations_center();
|
mobile::services::request_mobile_operations_center();
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_terrorbyte();
|
mobile::services::request_terrorbyte();
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_acidlab();
|
mobile::services::request_acidlab();
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::services::request_acidlab_bike();
|
mobile::services::request_acidlab_bike();
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
mobile::mobile_misc::request_taxi();
|
mobile::mobile_misc::request_taxi();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
ENTITY::SET_ENTITY_HEALTH(self::ped, 0, 0);
|
ENTITY::SET_ENTITY_HEALTH(self::ped, 0, 0);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
class empty_session : command
|
class empty_session : command
|
||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
g_player_service->iterate([](const player_entry& player) {
|
g_player_service->iterate([](const player_entry& player) {
|
||||||
auto mgr = *g_pointers->m_gta.m_network_player_mgr;
|
auto mgr = *g_pointers->m_gta.m_network_player_mgr;
|
||||||
|
@ -10,7 +10,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual std::optional<command_arguments> parse_args(const std::vector<std::string>& args, const std::shared_ptr<command_context> ctx)
|
virtual std::optional<command_arguments> parse_args(const std::vector<std::string>& args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
command_arguments result(1);
|
command_arguments result(1);
|
||||||
result.push(rage::joaat(args[0]));
|
result.push(rage::joaat(args[0]));
|
||||||
@ -18,12 +18,12 @@ namespace big
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual CommandAccessLevel get_access_level()
|
virtual CommandAccessLevel get_access_level() override
|
||||||
{
|
{
|
||||||
return CommandAccessLevel::FRIENDLY;
|
return CommandAccessLevel::FRIENDLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(const command_arguments& args, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments& args, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
const auto hash = args.get<rage::joaat_t>(0);
|
const auto hash = args.get<rage::joaat_t>(0);
|
||||||
if (!STREAMING::IS_MODEL_IN_CDIMAGE(hash) || !STREAMING::IS_MODEL_A_VEHICLE(hash))
|
if (!STREAMING::IS_MODEL_IN_CDIMAGE(hash) || !STREAMING::IS_MODEL_A_VEHICLE(hash))
|
||||||
|
@ -6,7 +6,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Vehicle veh = mobile::mechanic::get_personal_vehicle();
|
Vehicle veh = mobile::mechanic::get_personal_vehicle();
|
||||||
vehicle::bring(veh, self::pos);
|
vehicle::bring(veh, self::pos);
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
teleport::to_highlighted_blip();
|
teleport::to_highlighted_blip();
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
if (g_local_player && g_local_player->m_vehicle)
|
if (g_local_player && g_local_player->m_vehicle)
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
teleport::to_objective();
|
teleport::to_objective();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
Vehicle veh = mobile::mechanic::get_personal_vehicle();
|
Vehicle veh = mobile::mechanic::get_personal_vehicle();
|
||||||
teleport::into_vehicle(veh);
|
teleport::into_vehicle(veh);
|
||||||
|
@ -8,7 +8,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
using command::command;
|
using command::command;
|
||||||
|
|
||||||
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx)
|
virtual void execute(const command_arguments&, const std::shared_ptr<command_context> ctx) override
|
||||||
{
|
{
|
||||||
teleport::to_waypoint();
|
teleport::to_waypoint();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace big
|
|||||||
// rate limit script events to prevent crashes
|
// rate limit script events to prevent crashes
|
||||||
static int offRadarPlayer = 0;
|
static int offRadarPlayer = 0;
|
||||||
static int neverWantedPlayer = 0;
|
static int neverWantedPlayer = 0;
|
||||||
void looped::player_good_options()
|
void looped::player_good_options()
|
||||||
{
|
{
|
||||||
if (!*g_pointers->m_gta.m_is_session_started)
|
if (!*g_pointers->m_gta.m_is_session_started)
|
||||||
return;
|
return;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
void looped::player_remote_control_vehicle()
|
void looped::player_remote_control_vehicle()
|
||||||
{
|
{
|
||||||
if (g.m_remote_controller_vehicle == -1)
|
if (g.m_remote_controller_vehicle == -1)
|
||||||
return;
|
return;
|
||||||
|
@ -7,7 +7,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
static bool bReset = true;
|
static bool bReset = true;
|
||||||
|
|
||||||
void looped::player_spectate()
|
void looped::player_spectate()
|
||||||
{
|
{
|
||||||
const auto vehicle = self::veh;
|
const auto vehicle = self::veh;
|
||||||
const auto ped = self::ped;
|
const auto ped = self::ped;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user