fix(Toxic): Don't use 0 as player id, make sure it's valid
This commit is contained in:
parent
5fd3ef667d
commit
1bae411588
@ -13,7 +13,7 @@ namespace big::toxic
|
|||||||
FIRE::ADD_OWNED_EXPLOSION(
|
FIRE::ADD_OWNED_EXPLOSION(
|
||||||
PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(to_blame),
|
PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(to_blame),
|
||||||
pos.x, pos.y, pos.z,
|
pos.x, pos.y, pos.z,
|
||||||
(int)explosion_type,
|
explosion_type,
|
||||||
damage,
|
damage,
|
||||||
is_audible,
|
is_audible,
|
||||||
is_invisible,
|
is_invisible,
|
||||||
@ -32,8 +32,8 @@ namespace big::toxic
|
|||||||
{
|
{
|
||||||
const size_t arg_count = 22;
|
const size_t arg_count = 22;
|
||||||
int64_t args[arg_count] = {
|
int64_t args[arg_count] = {
|
||||||
(int)eRemoteEvent::Bounty,
|
static_cast<int64_t>(eRemoteEvent::Bounty),
|
||||||
0, // doesn't matter of we set this to something else, the TRIGGER_SCRIPT_EVENT routine will set it to our player id anyways
|
self::id,
|
||||||
target,
|
target,
|
||||||
0, // set by player or NPC?
|
0, // set by player or NPC?
|
||||||
amount,
|
amount,
|
||||||
@ -88,8 +88,8 @@ namespace big::toxic
|
|||||||
{
|
{
|
||||||
constexpr size_t arg_count = 3;
|
constexpr size_t arg_count = 3;
|
||||||
int64_t args[arg_count] = {
|
int64_t args[arg_count] = {
|
||||||
(int)eRemoteEvent::ClearWantedLevel,
|
static_cast<int64_t>(eRemoteEvent::ClearWantedLevel),
|
||||||
0,
|
self::id,
|
||||||
*script_global(1893551).at(target, 599).at(510).as<int*>()
|
*script_global(1893551).at(target, 599).at(510).as<int*>()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user