mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-08 18:33:37 +08:00
fix(Toxic): Set bounty
This commit is contained in:
parent
3394f8e65c
commit
040b2a8882
@ -35,19 +35,18 @@ namespace big::toxic
|
|||||||
inline void bounty_player(Player target, Player origin, int amount)
|
inline void bounty_player(Player target, Player origin, int amount)
|
||||||
{
|
{
|
||||||
const size_t arg_count = 22;
|
const size_t arg_count = 22;
|
||||||
int args[22] = {
|
int args[arg_count] = {
|
||||||
(int)eRemoteEvent::Bounty, // 0
|
(int)eRemoteEvent::Bounty,
|
||||||
origin, // 1 Player in script self
|
0,
|
||||||
target, // 2 Player in script self
|
target,
|
||||||
0, // 3 unk
|
0,
|
||||||
amount, // 4
|
10000,
|
||||||
0, // 5 => never set
|
0, 1, 0, 0, 0, 0, 0, 0,
|
||||||
1, // 6 => always 1
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
*script_global(1921036 + 9).as<int*>(),
|
||||||
*script_global(1658176 + 9).as<int*>(),
|
*script_global(1921036 + 10).as<int*>()
|
||||||
*script_global(1658176 + 10).as<int*>()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << origin);
|
g_pointers->m_trigger_script_event(1, args, arg_count, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user