feat(Toxic): Kick from vehicle (#165)
This commit is contained in:
parent
7e344028db
commit
93f38b20fc
@ -58,6 +58,13 @@ namespace big::toxic
|
||||
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(origin.x, origin.y, origin.z, destination.x, destination.y, destination.z, 1, 0, RAGE_JOAAT("WEAPON_STUNGUN"), PLAYER::PLAYER_PED_ID(), false, true, 1);
|
||||
}
|
||||
}
|
||||
|
||||
inline void kick_from_vehicle(const Player player)
|
||||
{
|
||||
const Ped target = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player);
|
||||
|
||||
TASK::CLEAR_PED_TASKS_IMMEDIATELY(target);
|
||||
}
|
||||
|
||||
inline void clear_wanted_player(Player target)
|
||||
{
|
||||
@ -70,4 +77,4 @@ namespace big::toxic
|
||||
|
||||
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,11 @@ namespace big
|
||||
components::button("Taze", [] {
|
||||
toxic::taze_player(g_player_service->get_selected()->id());
|
||||
});
|
||||
|
||||
components::button("Kick From Vehicle", [] {
|
||||
toxic::kick_from_vehicle(g_player_service->get_selected()->id());
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user