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
Rimmuru 5260b27899
Editor+ (#745)
* feat(Toxic): add send to island
* feat(mobile): add helicopter backup
* refractor(mobile): update seperator
* feat(Troll): add set bounty

* tps
tp all to island
tp all to eclipse
tp to eclipse

* working hijack &, delete. + placeholders
* speed, derail
* drive train, working derail
* improved drive train
* exit train, rework delete
* using CReplayInterface
2023-01-06 23:25:16 +00:00

41 lines
648 B
C++

#pragma once
#include "gta/enums.hpp"
#include "services/players/player_service.hpp"
#include "script_global.hpp"
#include "pointers.hpp"
namespace big::troll
{
inline void set_bounty_on_player(player_ptr target, int value)
{
const size_t arg_count = 22;
int64_t args[arg_count] =
{
(int64_t)eRemoteEvent::Bounty,
self::id,
target->id(),
1,
value,
0,
1,
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());
}
}