
* Refactored TRIGGER_SCRIPT_EVENT for the duplicate f_2 argument they added in 3095. Fixed OOB gadget spam caused by the tow truck. Increased max interiors in InteriorControl. * Updated scripted_game_event. * Update GTAV-Classes repo. * Fixed locals for 3095. * Bump project to Build 3095.
41 lines
798 B
C++
41 lines
798 B
C++
#pragma once
|
|
#include "core/scr_globals.hpp"
|
|
#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 = 23;
|
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::Bounty,
|
|
self::id,
|
|
-1,
|
|
target->id(),
|
|
1,
|
|
value,
|
|
0,
|
|
anonymous ? 1 : 0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
*scr_globals::gsbd_fm_events.at(9).as<int*>(),
|
|
*scr_globals::gsbd_fm_events.at(10).as<int*>()};
|
|
|
|
g_pointers->m_gta.m_trigger_script_event(1, args, arg_count, -1, (int)eRemoteEvent::Bounty);
|
|
}
|
|
|
|
}
|