public function SetPosition(Position $position) { SetPlayerPos($this->id, $position->x, $position->y, $position->z); SetPlayerFacingAngle($this->id, $position->angle); $this->Update(); }
public static function OnPlayerEnterVehicle(Player $player, $vehicle) { if ($player->timedeath != 0) { $pos = $player->Position(); SetPlayerPos($player->id, $pos->x, $pos->y, $pos->z); return CALLBACK_DISALLOW; } return CALLBACK_OK; }