This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/util/troll.hpp
maybegreat48 9ccb77e8eb
Add more spoofing options and added clang-format (#1020)
* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-03-01 21:27:15 +00:00

39 lines
736 B
C++

#pragma once
#include "gta/enums.hpp"
#include "pointers.hpp"
#include "script_global.hpp"
#include "services/players/player_service.hpp"
namespace big::troll
{
inline void set_bounty_on_player(player_ptr target, int value, bool anonymous)
{
const size_t arg_count = 22;
int64_t args[arg_count] = {(int64_t)eRemoteEvent::Bounty,
self::id,
target->id(),
1,
value,
0,
anonymous ? 1 : 0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
*script_global(1923597).at(9).as<int64_t*>(),
*script_global(1923597).at(10).as<int64_t*>()};
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << target->id());
}
}