public function ClearAnimations($stop_current = true) { if ($this->animation) { if ($stop_current) { if ($this->animation->stop) { $this->animation = $this->animation->stop; $this->ApplyAnimation(); } else { ClearAnimations($this->id); } } if ($this->animation->stop_cbk) { call_user_func($this->animation->stop_cbk, $this, $this->animation->stop_data); } if ($this->animation->forced == false) { $draw = Animations::GetStoppingDraw(); TextDrawHideForPlayer($this->id, $draw); } $this->animation = null; if ($this->animtimer) { KillTimer($this->animtimer); $this->animtimer = null; } } }
public static function menuUpgradesExit(Player $player) { if (Players::$upgrade_draws[$player->id] != null) { TextDrawHideForPlayer($player->id, Players::$upgrade_draws[$player->id]); TextDrawDestroy(Players::$upgrade_draws[$player->id]); Players::$upgrade_draws[$player->id] = null; } }